almost 11 years ago
JavaScript Pagination
Here i am going to describe how we would add JavaScript pagination to the table. We'll focus on displaying a particular page of data.
$(document).ready(function() { $('table.paginated').each(function() { var currentPage = 0; var numPerPage = 10; var $table = $(this); $table.find('tbody tr').show() .lt(currentPage * numPerPage) .hide() .end() .gt((currentPage + 1) * numPerPage - 1) .hide() .end(); }); });
This code displays the first pageten rows of data.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)