function uncheckAll(field)

// Sets all checkboxes in a form to be unchecked
// Just pass the function the name of the field that needs setting
// e.g. onClick="uncheckAll(document.form.checkboxName);"

{
if (typeof(field.length) == "undefined")

{
field.checked = false ;

}
for (i = 0; i < field.length; i++) field[i].checked = false ; }

How to set all checkboxes on a from to be unchecked

Leave a Reply

Your email address will not be published. Required fields are marked *

65 − = fifty nine