check/uncheck tick checkboxes but ignore any disabled ones
<p>I'm using the following Jquery to check/uncheck checkboxes but some of the boxes in are disabled so I don't need to be checked. </p>

<p>Is there a way I can tell the script to ignore disabled checkboxes?</p>

<pre><code>$('.uncheck').click(function () {
    if ($(this).is(':checked')) {
        $('.customers input:checkbox').removeAttr('checked');
    } else {
        $('.customers input:checkbox').attr('checked', 'checked');
    }
});
</code></pre>
