[DHTML] Check/Uncheck columns script
1) CODE TITLE: Check/Uncheck columns script
2) AUTHOR NAME/NOTES: jscheuer1
3) DESCRIPTION: I wrote this code in response to a post in the javascript section:
http://www.dynamicdrive.com/forums/s...ad.php?t=12978
It could be very useful for anyone faced with a similar situation. It will initialize checkboxes in table columns so that a 'check all' box at the top of the column can check all boxes and uncheck all boxes in the column. Once checked, if one box in the column is deselected, the 'check all' box will be deselected too. If it happens that all boxes in the column get selected except for the 'check all' box, it will automatically get selected. Degrades well in non-javascript enabled browsers if optional styles and configuration are used.
4) URL TO CODE: http://home.comcast.net/~jscheuer1/side/table_check.htm
or, ATTACHED BELOW (see #3 in guidelines below):