Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery tablesorter working with tablesorterPager and hidden rows
    primarykey
    data
    text
    <p>I currently have a large result set in a table where I am applying and removing a class of 'hidden' (display:none) to certain rows based on other filters within the page. I'm able to get <a href="http://tablesorter.com/docs/index.html" rel="nofollow">tablesorter</a> working with the zebra widget, but when I try to include <a href="http://tablesorter.com/docs/example-pager.html" rel="nofollow">tablesorterPager</a> on it, the script dies without any errors.</p> <p>I've tried removing the 'hidden' class from the table rows, and it limits the results, but doesn't create the pagination controls and if you try to sort, the results disappear and the script dies.</p> <pre><code>$('table').tablesorter({ widthFixed:true, widgets: ['zebra']} ).tablesorterPager({ container: $("#pager") }); </code></pre> <p>That's the code that's called on document ready.</p> <p>At any given time, here's a few sample rows of data (pre-tablesorter):</p> <pre><code>&lt;tr class="place hidden"&gt; &lt;td class="name"&gt;Sample Row 1&lt;/td&gt; &lt;td&gt;100&lt;/td&gt; &lt;td&gt;12&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr class="place"&gt; &lt;td class="name"&gt;Sample Row 2&lt;/td&gt; &lt;td&gt;100&lt;/td&gt; &lt;td&gt;12&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr class="place hidden"&gt; &lt;td class="name"&gt;Sample Row 3&lt;/td&gt; &lt;td&gt;100&lt;/td&gt; &lt;td&gt;12&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;0&lt;/td&gt; &lt;/tr&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload