title: Jquery select all if not disabled
body: <p>I am using the following script to select all checkboxes with a given class.</p>
  
  <pre><code>$(document).ready(function(){ // 1
      // 2
      $(':checkbox.selectall').on('click', function(){
          // 3
          $(':checkbox[class='+ $(this).data('checkbox-name') + ']').prop("checked", $(this).prop("checked"));
          $(':checkbox[class='+ $(this).data('checkbox-name') + ']').trigger("change");
      });
  
  });
  </code></pre>
  
  <p>However I'm having a problem as the de/select all checkbox is able to de/select checkboxes which are disabled.</p>
  
  <p>I tried this</p>
  
  <pre><code>$(document).ready(function(){ // 1
      // 2
      $(':checkbox.selectall').on('click', function(){
          // 3
          $(':checkbox[class='+ $(this).data('checkbox-name') + !$(:disabled) + ']').prop("checked", $(this).prop("checked"));
          $(':checkbox[class='+ $(this).data('checkbox-name') + !$(:disabled) + ']').trigger("change");
      });
  
  });
  </code></pre>
  
  <p>But it does not work. I have made a jsfiddle to showcase the problem <a href="http://jsfiddle.net/e67Fv/">http://jsfiddle.net/e67Fv/</a></p>