I am using the pagination plugin found on: http://flaviusmatis.github.io/simplePagination.js/
This is the code I am using in my programme:
$(function() {
$('#pager').pagination({
items:data.length,
itemsOnPage: 10,
cssStyle: 'light-theme'
});
});
The problem is that I want my 'data' object to be paginated. I am initializing an empty table and filling it after appropriately manipulating the html by:
$('#tabbody').html(upd);
Just below this tabbody is the pager placeholder. How do I tell the plugin what data to break into pages? Is there any other plugin that makes this easier?