Tag Archive | check all

How to make Select All with single check box in jQuery?

How to make Select All with single check box in jQuery. $(document).ready(function () { $(‘#selecctall’).click(function (event) {  //on click if (this.checked) { // check select status $(‘.check’).each(function () { //loop through each checkbox this.checked = true;  //select all checkboxes with class “checkbox1” }); } else { $(‘.check’).each(function () { //loop through each checkbox this.checked = […]