开发者

jQuery - Pagination with dynamic content

开发者 https://www.devze.com 2023-01-24 12:39 出处:网络
<style type=\"text/css\"> .model { display: none; } .header { cursor: pointer; } </style> <div class=\"model\">item <span>1</span></div>
<style type="text/css">
.model {
  display: none;
}
.header {
  cursor: pointer;
}
</style>
<div class="model">item <span>1</span></div>
<div class="header">Add an item</div>
<div class="itemlist">
  <div>item <span>1</span></div>
  <div>item <span>2</span></div>
  <div>item <span>3</span></di开发者_运维百科v>
</div>

If the user clicks on the header, my javascript clones .model and prepends .itemlist with it.

I would like to paginate (no need for ajax) this dynamic .itemlist with for example 10 items per page.

I tried 2 or 3 jquery plugins but I can't find one that manages the pagination with a dynamic list.


How about this JQuery Plugin ? Name is quickPager and download from here.

0

精彩评论

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