Is it possible to select all the rows of the table after the 4th one? I want to hide the remaining ones.
<table class="mytable">
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
</table>
You can use
:gt()selector:Another option is to use
slice()method:DEMO: http://jsfiddle.net/F937n/