This is very simple and most commonly used in web application and specially its used where there is multiple record listing.
In Admin section, this functionality is needed in every page, like User Listing, Product Listing, Album Listing & images listing etc.
When selected "Select All" checkbox, It will select all the checkbox under the main checkbox.
If you de-select the "Select All", It will de-select all the checkbox under this main checkbox.
When selected "Select All" checkbox, It will select all the checkbox under the main checkbox.
If you de-select the "Select All", It will de-select all the checkbox under this main checkbox.
You can use below code and do the modification as per your requirement. This code is very useful not just in current web application but also for future.
select all checkbox jquery DEMO
Select All | |
---|---|
Name2 | |
Name3 | |
Name4 | |
Name5 | |
Name6 |
Select All | |
---|---|
Name2 | |
Name3 | |
Name4 | |
Name5 | |
Name6 |