|
I know this is not that hard, but I am just not getting it. Not a Javascript GURU by any stretch of the imagination.
I have table with three rows. Each row has three text input boxes. If the user enters information in any text boxes of the first row, then the last two rows of text boxes become disabled. If the user enters information in the second row, then rows 1 and 3 become disabled. Basically onSubmit() the user can only submit one row of data.
<form action="" method="post">
<table>
<tr>
<td><input type="text" name="afield1" value=""></td>
<td><input type="text" name="afield2" value=""></td>
<td><input type="text" name="afield3" value=""></td>
</tr>
<tr>
<td><input type="text" name="afield3" value=""></td>
<td><input type="text" name="afield4" value=""></td>
<td><input type="text" name="afield5" value=""></td>
</tr>
<tr>
<td><input type="text" name="afield6" value=""></td>
<td><input type="text" name="afield7" value=""></td>
<td><input type="text" name="afield8" value=""></td>
</tr>
</table>
<input type="submit" value="GO">
</form>
|
|
|
|
|
|
|
|