Found this script that does a “check all” function, but it has a problem. It works fine until I add a “submit” button to the form field. That breaks it–instead of checking all, it unchecks the “check all” checkbox itself as soon as you click on it, as well as any other checkboxes in the field. Here’s the script:
function Checkall(form){
for (var i = 1; i < form.elements.length; i++){
eval(“form.elements[” + i + “].checked = form.elements[0].checked”);
}
}
And here’s the call :
<input type=”checkbox” onclick=”Checkall(this.form);” />
Seems like it should be a simple thing to fix, but I’ve tried a couple of things and no luck (I’m pretty rudimentary with javascript). Any help appreciated–not much point in checking all the boxes if you can’t submit the results!