uncheck all checkboxes not checked but jquery 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);
});