I want to select all checkbox elements expect disabled ones,
checkbox
this is my html
Or you may also use the :not selector as follows:
$('#chkSelectAll').click(function () { var checked_status = this.checked; $('div#item input[type=checkbox]:not(:disabled)').each(function () { this.checked = checked_status; }); });