| Author |
How to select row from HTML Table and submit value to other jsp
|
raka sinha
Greenhorn
Joined: Jan 22, 2007
Posts: 15
|
|
I have a JSP where the resultset are displayed in the form of table. My Requirement is to select particular row which will lead in change in clour of that row and on submitting the value will pass to onother jsp How to approach this. Please help
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
One way to do it would be to create a hidden field in your JSP named something like "selectedId". You would then write a JavaScript function fired by the onclick event of each <tr> element in the table that would apply a different CSS style to the row and use the DOM to get some value displayed in the current row and set selectedId to that value.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: How to select row from HTML Table and submit value to other jsp
|
|
|