function BuildInStr(field) { var b = field.length; var a = ”; document.formName.Result.value = “”; if (typeof(field.length) == “undefined”) { if(field.checked == 1){a = field.value + ‘,’ ;} } for (i = 0; i < b; i++) { if(field[i].checked == 1){a
How to invert all checkboxes on a form
function invertAll(field) // Invert all selections of a checkbox within a form, // just pass it the name of the checkbox field // e.g. onClick=”invertAll(document.frmTest.checkboxName)”; { if (typeof(field.length) == “undefined”) { if(field.checked == 1){field.checked = 0;} else {field.checked = 1;}
How to set all checkboxes on a from to be unchecked
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
How to set all checkboxes in a form to be checked
function checkAll(field) // Sets all checkboxes in a form to be checked // Just pass the function the name of the field that needs setting // e.g. onClick=”checkAll(document.form.checkboxName);” { if (typeof(field.length) == “undefined”) { field.checked = true ; addToMutationsList(field); }