How to clear all checkbox When checkbox id=\"checkAll\" are checked ?
in my demo , when user checked checkbox id=\"checkAll\" all checkbox are
If I'm understanding you correctly, you want to clear all the items when they click "Check All" - you might want to change the name to "Clear All" for clarity.
If so, just add a simple ! in front of this.checked
$('#checkAll').click(function () {
$('input:checkbox').prop('checked', !this.checked); });