<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_row
variable and references it against $('tr').eq(whatever)
. Make it iterate 3 times either direction, show()
the applicable rows and hide()
the siblings()
精彩评论