JQuery Tablesorter Pager: Get the currently viewed page number -
i have looked through documentation , few examples can't find answer this...
how current page being viewed? it's purpose of limiting number of results returned database.
thanks
edit: updated name because realized how vague was
if using original version of tablesorter (v2.0.5), page contained in:
// table.config.page = zero-based index // value follows: var currentpage = $('table')[0].config.page;
if using pager fork of tablesorter, can page (demo):
// table.config.pager.page = zero-based page index var currentpage = $('table')[0].config.pager.page;
or, if including page select in pager controls, use
$('.gotopage').val() // one-based page index
Comments
Post a Comment