One solution would be to use eva l:
Note that "eva l" must be written as a single
word, but the forum software won't allow it
Another solution would be to use a framework that will make it easier for you. For instance, using jQuery you can achieve this in just a few lines:
This code basically means:
when the checkbox with id checkAll is clicked, take all the other checkboxes whose name attribute starts with "chk" and set their "checked" attribute only if checkAll is checked (i.e., this refers to checkAll within the click event handler).
[ August 17, 2007: Message edited by: Valentin Crettaz ]