Forum Moderators: open
<form name="submit_form" method="post" >
<td><input type="checkbox" name="submit_print1" class="Print"<td>
<td><input type="checkbox" name="submit_print2" class="Print"<td>
...
<td><input type="checkbox" name="submit_print'X'" class="Print"<td>
<input type="button" onclick=" " value="Select All Delete">
Thanks.
</form>
function checkUncheckAll(theElement, ButtonGroup) {
var theForm = theElement.form, z = 0;
while (theForm[z].type == 'checkbox') {
if (theForm[z].name.indexOf(ButtonGroup) == 0) {
theForm[z].checked = theElement.checked;
}
z++;
}
}