Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing values to modal on the same page  RSS feed

 
Shahid Kahn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!