javaspace
11-14-2002, 03:47 AM
Hello:
I have a script which populates data from a database into a table. I have given each row an unquie number. Two of the columns is datein and dateout. So my first table row has a column named as 01datein and another column as 01dateout. This goes on depending on the number of rows. If I had 20 rows the last row column name is 20datein and 20dateout.
Now the first column of each row is a radio button with the same numbering sequence. When a user selects a radio button, I have onclick function and pass the row number. In this function I want to see what the value of the datein and dateout is.
Can I use the seq. number like this: document.frm.__datein and document.frm.__dateout. Now the undersocre should be the seq.number.
Can some please help, and give me a sample code or explain how I can do this. Thanks for your help in advance.
Thanks
GG
I have a script which populates data from a database into a table. I have given each row an unquie number. Two of the columns is datein and dateout. So my first table row has a column named as 01datein and another column as 01dateout. This goes on depending on the number of rows. If I had 20 rows the last row column name is 20datein and 20dateout.
Now the first column of each row is a radio button with the same numbering sequence. When a user selects a radio button, I have onclick function and pass the row number. In this function I want to see what the value of the datein and dateout is.
Can I use the seq. number like this: document.frm.__datein and document.frm.__dateout. Now the undersocre should be the seq.number.
Can some please help, and give me a sample code or explain how I can do this. Thanks for your help in advance.
Thanks
GG