I have the following code (snippet):
var numRows = $table.find(\'tbody tr\').length; var numPages = Math.ceil(numRows / numPerPage); var $pager = $(\'
You could use FireBug to find it if you needed to see it in action.