Results 1 to 7 of 7
Sep 17, 2011, 18:07 #1
How does one uncheck a check Box with Javacript?
How does one uncheck a check Box with Javacript when the rows of the Table are dynamically created by
Php so we do not know what the row numbers are going to be before hand.
That is we have these 2 check boxes:
<input type="checkbox" name="approve" value="<?php echo $user_id; ?>" checked onClick="uncheck(reject, <?php echo ($row - 1); ?>>
<input type="checkbox" name="reject" value="<?php echo $user_id; ?>" onClick="uncheck(approve, <?php echo ($row - 1); ?>">
So if they click on check box "reject", we then want check box "approve" unchecked and vis-versa.
function uncheck(field, i)
field[i].checked = false ;
But the combination of above is not working!
Anoox search engine volunteer