<table>
<tbody>
<th></th>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
...
</tbody>
</table>
<a href="#"><<</a>
<a href="#">1</a>
<a href="#">2</a>.
....
<a href="#">>></a>
Here I want to make pagination that will show only 3 <tr>s each time. No of <tr> is dynamic. So page no will also be calculated. How can I do that?
Please help.
Thanks in advance.
I’d make a function which sets a
current_rowvariable and references it against$('tr').eq(whatever). Make it iterate 3 times either direction,show()the applicable rows andhide()thesiblings()