Javascript Presentation 1

Checkbox Presentation

Cancel Next

The problem presented was this: There was a table which had many checkboxs in it, next to some names. There was one checkbox at the top which said, "check all or none". If the checkbox at the top was turned on by the user, then all the checkboxes would be turned on. The user could then deselect the boxes desired. If the checkbox at the top was turned off by the user, then all the checkboxes would be turned off, and the user could choose to select those entries desired.

Also, the check boxes were created with classical ASP, so each check box will have the same ID and Name, but different values. I didn't want to have to change that.

This problem suggests a Javascript solution because the user will want an immediate feedback. There will not be time to have an exchange with the server.

To demonstrate what is required, I will implement this on the following page.