Mar 26, 2007

Check, Uncheck All Checkboxes

Thanks for visiting.

2 Comments:

Jayashree said...

why do you add the last portion in the loop ?It automatically breaks out of the loop even if only one checkbox is selected.
************************
}
else {

if (comfList.checked) {
document.forms[frmName].submit();
return true;
}
else {
alert('Please check your comfortability list.');
return false;
}

}
}
************************

j said...

thank you.

its using document.*formname*.elements[*variable*]

and setting variable = 'name[]' with the brackets that finally worked for me.

thanks

-j

 
Privacy Policies
Blogroll