B
Ben Dover - Mental Patient 0057
I have these text boxes that start with a check box:
[X] [text_A_1] [text_A_2] [text_A_3] [text_A_4]
[X] [text_B_1] [text_B_2] [text_B_3] [text_B_4]
[X] [text_C_1] [text_C_2] [text_C_3] [text_C_4]
[X] [text_D_1] [text_D_2] [text_D_3] [text_D_4]
I want to clear boxes in a row.
user clicks on first check box, that row of text boxes clears
here's the code:
<html>
<head>
<script language='javascript'>
function clearItem(thisOne) {
var thatOne=3;
document.up_data.A[2].value='xx'
}
}
</script>
</head>
<body>
<form name="up_data" method="POST" action="notes.cgi">
<input type="checktext" name="chkA0" onclick='clearItem("A")'>
<input type="text" name="A1">
<input type="text" name="A2">
<input type="text" name="A3">
<input type="text" name="A4">
<input type="checktext" name="chkB0" onclick='clearItem("B")'>
<input type="text" name="B1">
<input type="text" name="B2">
<input type="text" name="B3">
<input type="text" name="B4">
..... etc...
<input type="submit"> <input type="reset">
</form>
[X] [text_A_1] [text_A_2] [text_A_3] [text_A_4]
[X] [text_B_1] [text_B_2] [text_B_3] [text_B_4]
[X] [text_C_1] [text_C_2] [text_C_3] [text_C_4]
[X] [text_D_1] [text_D_2] [text_D_3] [text_D_4]
I want to clear boxes in a row.
user clicks on first check box, that row of text boxes clears
here's the code:
<html>
<head>
<script language='javascript'>
function clearItem(thisOne) {
var thatOne=3;
document.up_data.A[2].value='xx'
}
}
</script>
</head>
<body>
<form name="up_data" method="POST" action="notes.cgi">
<input type="checktext" name="chkA0" onclick='clearItem("A")'>
<input type="text" name="A1">
<input type="text" name="A2">
<input type="text" name="A3">
<input type="text" name="A4">
<input type="checktext" name="chkB0" onclick='clearItem("B")'>
<input type="text" name="B1">
<input type="text" name="B2">
<input type="text" name="B3">
<input type="text" name="B4">
..... etc...
<input type="submit"> <input type="reset">
</form>