This javascript cut & paste code snippet allows check boxes to be checked and unchecked based on the selection in another checkbox. If the ALL box is checked off all the other choices go unchecked automatically.  If a choice is selected the ALL box goes unchecked. Useful when constructing search forms, surveys, etc. 


Insert this code into your HEAD of HTML

Insert this code into your BODY section

Example: Please select your favorite classes:

All Science Math English History Other

Simply Cut and Paste Script code
Be sure to properly place script position in HEAD & BODY sections of html 

This script has been in the DesignerWiz.com Public Library.