开发者

How to use the jquery jpagination plugin

开发者 https://www.devze.com 2023-01-01 20:08 出处:网络
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

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

精彩评论

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