jQuery Pagination Plugin

You don’t even need to use a for loop, just use jQuery’s slice() method and a bit of math. I’ve hosted a working demo on JS Bin: http://jsbin.com/upuwe (Editable via http://jsbin.com/upuwe/edit) Here’s the modified code: var pagination_options = { num_edge_entries: 2, num_display_entries: 8, callback: pageselectCallback, items_per_page:3 } function pageselectCallback(page_index, jq){ var items_per_page = pagination_options.items_per_page; var … Read more