|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
function Checkboxes_SetAll(FormName, Value) {
/*
Purpose
Used to set the value of all checkboxes in the specified form.
Parameters
FormName (string) = The name of the form we're working with.
Value (boolean) = The value we're going to set all checkboxes to.
Version History
1.00 2009.6.24 Tested by Russ Tanner on IE6/FF3.
*/
var frm = document.forms[FormName]
var c = frm.elements.length;
for(var i=0; i<c; i++) {
if (frm.elements[i].type == 'checkbox') frm.elements[i].checked = Value;
}
}
|
|
|
|
|