Heya,
well, I have a form that looks like this:
<form name="test" action="index.php" method="post" onsubmit="checkers(); return false;">
<input type="checkbox" name="checker[]" value="1">
<input type="checkbox" name="checker[]" value="2">
<input type="checkbox" name="checker[]" value="3">
<input type="checkbox" name="checker[]" value="4">
<input type="checkbox" name="checker[]" value="5">
<input type="submit">
</form>
how can I check if there's any of those checkboxes checked using javascript?
document.test.checker[].checked seems to be wrong because of the array...
thanks in advance
well, I have a form that looks like this:
<form name="test" action="index.php" method="post" onsubmit="checkers(); return false;">
<input type="checkbox" name="checker[]" value="1">
<input type="checkbox" name="checker[]" value="2">
<input type="checkbox" name="checker[]" value="3">
<input type="checkbox" name="checker[]" value="4">
<input type="checkbox" name="checker[]" value="5">
<input type="submit">
</form>
how can I check if there's any of those checkboxes checked using javascript?
document.test.checker[].checked seems to be wrong because of the array...
thanks in advance