Toggle Checkbox Selection in Javascript
Submitted by Pujan on Sun, 03/08/2009 - 18:03
Tagged:
We have often seen in webmail and other similar applications where a single checkbox at the top is used to toggle the selection of all other checkboxes in the page. The javascript function below makes it possible to achieve the same result.
Usage:
The Javascript Function
The Main page body
Live Demo:
Click the checkbox on the heading to toggle the selection of all the checkboxes in the table below.