开发者

How to use the jquery jpagination plugin

does anyone 开发者_JAVA技巧out there know how to use the jquery recordset pagination plugin called jpagination? I have searched the net but there is no substantial info, all it says is use

$(elementID).paginate(), what element are they referring to, is it a table, div where the table is, what. Any help will be appreciated.


With pagination plugins you select a parent element and the paginator automatically selects next child elements to page. So, if you have....

<div id="wrapper">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
</div>

You would paginate on the "wrapper" element.

$('#wrapper').paginate();

I'm not certain what the restrictions are on this particular plugin but I would think it would adapt to nearly any parent->children DOM relationship, not just divs. There's documentation on their web site and you can always browse the source of their working demos.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜