Forums Register Login

Passing values to modal on the same page

+Pie Number of slices to send: Send
I am displaying table like bellow and going to a modal

The code in modal div on the same JSP file is


This is javascript code on the same JSP file

I am opening a form from modal

What I want is-
1. When an anchor link is clicked on for each row the product ID and product will be passed to modal div
2. Add the product ID in hidden field
3. Process form data in servlet

I don't know how to do aforementioned no.1

I would appreciate you help
Let's go to the waterfront with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5065 times.
Similar Threads
Display data from database to jsp page.
Verticle Space between the table rows
Passing check box value to servlet.
how to send table "td" values to another jsp when particular row checkbox is checked
Redirecting a page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:59:06.