Hi folks,
I am working on a webapplication using Jsp and JS.
On my main Jsp(Jsp1) I have a table which is created dynamically
inside a <divand contains all the backend-table's records as rows,
ie as many records in the MySql-table as many rows in my Html-
table(say T1).I am creating this dynamic table using a Jsp-scriptlet
and I have set a vertical scrollbar on the <divsuch that user can
see 5 rows of T1 at a time.Each row in T1 has a radio button
associated with it which is used to select a particular row for
modifying it.User can select a single row at a time.
The requirement is that if I select the radio button on any row then
the cell-contents of that row should be populated in the corresponding
textfields of Jsp1.
For eg:- say every row of T1 has 3 cells C1,C2 and C3.
and say Jsp1 has 3 TextFields on it txt1,txt2 and txt3.
Now I need that if the user clicks the radio of the 3rd row then C1's
contents for the 3rd row be populated in txt1,C2's in txt2 and C3's in
txt3.
I am totally clueless as to how to determine which row it is that has
its radio button clicked and how to retrieve individual cell values of
the table and set them as text in the textfields of Jsp1?!
Any suggestions?