check all checkboxed are checked or not code example
Example: jquery check if all checkbox is not checked
$('#checkAll').click(function () {
$('input:checkbox').prop('checked', this.checked);
});
$('#checkAll').click(function () {
$('input:checkbox').prop('checked', this.checked);
});