I have HTML page which have multiple checkboxes and individually they can be checked. I have button for \"Select All\" and when I click on this button all the check
Try This,
if ($(this).hasClass('allChecked')) { $('input[type="checkbox"]').prop('checked', 'checked') } else { $('input[type="checkbox"]').prop('checked', 'false') }