Check All by jQuery Method 1: $(document).ready(function() { $('#selectAll').click(function(event) { if(this.checked) { // check select status $('.checkbox1').each(function() { this.checked = true; //select all checkboxes with class "checkbox1" }); }else{ $('.checkbox1').each(function() { this.checked = false; //deselect all checkboxes with class "checkbox1" }); } }); }); Html <div> <input type="checkbox" id="selectAll"...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.