jQuery - Pagination with dynamic content
<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.
精彩评论