This is probably very basic as I haven't done much JavaScript in a while. I have a
servlet which displays results from a database query in a FORM so that by clicking a field submits a 2nd servlet.
like
<FORM ACTION=/servlet2...
then several rows of
<tr><td><input type=submit value=? onClick=SubmitForm()>
<INPUT type='hidden' name='vx' value='" + value1 + "'>")
this is repeated for each row
===
everything works, the 2nd servlet is submitted and receives a value but "value1" is always the value of 1st row?. If I click on the nth row I expected it to pass the value for that row not always the 1st. What am I doing wrong ?
Thanks