select all checkbox in jquery

Select all checkbox in jquery

By using jquery we can check all check boxes as well as deselect all check boxes like gmail. Why we need to keep select and deselect all checkboxes? When your application has more than 1000 unwanted names you cannot go and delete the record for each time, Instead of that you can check all the records and delete them in single request. Jquery providing simple and easy way to do this.



Name = “check[]” => check[] mention the check is a check box name which is declared as array. So all the check box values are stored in array() in the name of check.

Jquery Code.

Below of my will explain how to check all the checkboxes and checked checkbox values.


Thanks!. If you like this article don’t forget to comment and share.