How to clear all checkbox When checkbox id=\"checkAll\" are checked ?
id=\"checkAll\"
in my demo , when user checked checkbox id=\"checkAll\" all checkbox are
Just apply the negation of this.checked
this.checked
$('#checkAll').change(function () { $('input:checkbox').not(this).prop('checked', !this.checked); });
Demo