Hi Guys,
I have this code which checks all checkboxes in a form :
function checkAll(theForm) {
for (i=0,n=theForm.elements.length;i<n;i++)
if (theForm.elements[i].name.indexOf('chkmsg') !=-1)
theForm.elements[i].checked = true;
}
I then call it via another checkbox :
<input type="checkbox" onClick="if (this.checked) checkAll(this.form);">
This all works AOK except that I am missing the code to uncheck them!!! Can
anyone point me in the right direction with a solution?! I am sure its
fairly simple, but I just cant see it as of yet :-(
I want it to work on a checkbox and not on an image like many solutions have
! any idea?
N
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]