dynamically show n hide table rows using jquery :gt
<p>I was wondering how to use jQuery's <code>:gt()</code> in an inclusive way. I am trying to show/hide table rows dynamically.</p>

<pre><code>$('#' + tbodyId + ' &gt; tr:gt(' + newRowStart + '):lt(' + rowsToShow + ')').show();
</code></pre>

<p>If i try to show the first 5 rows say, <code>newRowStart = 0</code> and <code>rowsToShow = 5</code>. This will not show the first row. Setting it to -1 doesn't work either. It would be very helpful if there was an inclusive method like <code>:gt()</code>. Does anyone know how to do this?</p>
