Use jQuery to not check hidden td:s
<p>I'm using the code below to make all checkboxes checked, but the problem is sometimes the checkboxes has a parent <code>&lt;td&gt;</code> with style="display:none;" css property and should not be checked. </p>

<p>How can I modify the code below to ignore the invisible checkboxes?</p>

<pre><code>// Check / uncheck all checkboxes
$('.check_all').click(function() {
    $(this).parents('form').find('input:checkbox').attr('checked', $(this).is(':checked'));
});`
</code></pre>

<p>(the reason the <code>&lt;td&gt;</code>:s are not visible are due to quicksearch.js)</p>
