I am using the following script to select all checkboxes with a given class.
$(document).ready(function(){ // 1
// 2
$(\':checkbox.selectall\').on(\'
Use a combonation of the .not() function and :disabled selector to exclude these.
$(':checkbox[class='+ $(this).data('checkbox-name') + ']').not(':disabled').prop("checked", $(this).prop("checked"));
$(':checkbox[class='+ $(this).data('checkbox-name') + ']').not(':disabled').trigger("change");
.not() also exists as a selector as :not() and could be used as follows:
$(':checkbox[class='+ $(this).data('checkbox-name') + ']:not(:disabled)').prop("checked", $(this).prop("checked"));
$(':checkbox[class='+ $(this).data('checkbox-name') + ']:not(:disabled)').trigger("change");