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 :-(
Neil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm