ALl ,You any one of have code that on select of one check box all should be selected in web as I am new in the java script.
Mike
ALl ,You any one of have code that on select of one check box all should be selected in web as I am new in the java script.
Mike
Subject: Check Box
Hi,
Try, in JS header of form put this javascript code :
function selectAll(fieldName) {
// parameter “fieldname” = string
// Set field object
var fieldObject = eval(‘document.forms[0].’+fieldName)
// Loop thru field object and check on all its boxes
for (i=0;i< fieldObject.length; i++) {
// check on = true (check off = false)
fieldObject[i].checked = true
}
}
and in
onSelect event of check box field put :
// this.name return the name of current object
selectAll(this.name)
Also take a look on this JavaScript Tutorial
Thierry