Check / Uncheck all checkboxes using jquery

Here is simple code snippet in jquery to check and uncheck all checkboxes in jquery.
We need this when we have to perform action on multiple rows or datasets. So i have written very minimal code in jquery to check and uncheck multiple checkboxes.




check-uncheck
Sample Html




Check/Uncheck all check box using jquery


Check/Uncheck
India
Brazil
China
France
United States

After that include jquery library before body close tang and put some jquery to apply action.



Where jquery .is() function return true or false as main checkbox is checked or unchecked



Now your complete index.html file will be..

index.html




Check/Uncheck all check box using jquery



Check/Uncheck
India
Brazil
China
France
United States

DEMO

DOWNLOAD

If you like this post please don’t forget to subscribe my public note book for more useful stuff