How do I combine check all script and filtering?
<p>I am new to JavaScript and jQuery, but have used HTML and CSS before. In any case, I appreciate the help. I have implemented the script discussed here <a href="http://net.tutsplus.com/tutorials/javascript-ajax/using-jquery-to-manipulate-and-filter-data/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-ajax/using-jquery-to-manipulate-and-filter-data/</a> for filtering data and the one discussed here <a href="http://www.dustindiaz.com/check-one-check-all-javascript/" rel="nofollow">http://www.dustindiaz.com/check-one-check-all-javascript/</a> for a check one to check all script. The problem is, when I filter the list of items and then use the check all box, it is checking even the JS items that are hidden from the user due to filtering. Does this make sense?</p>

<p>I have been trying to figure out how to edit the check all script so that only items with the "visible" class (as added to visible checkboxes with the filtering script) are checked with the checkAll button. The original script had:</p>

<pre><code>var checks = document.getElementsByName('del[]');
</code></pre>

<p>I was trying to do something like this (it wasn't working, of course):</p>

<pre><code>var visiblechecks = $('input:del[]:checked.visible');
</code></pre>

<p>among other things.</p>

<p>Thank you! Also, if you have a recommended resource, I would appreciate it.</p>
