I\'m using the jQuery DataTables plug-in for my HTML table.
Is there a way to get the row count of the number of rows in my table across pages.
For example, if I
It looks like DataTables is removing the rows that aren't on the current page from the DOM, so you aren't going to be able to count them with a jQuery selector. You'll have to use the DataTables API, specifically the fnGetData
function:
$(document).ready(function() {
// Initialize your table
var oTable = $('#myTable').dataTable();
// Get the length
alert(oTable.fnGetData().length);
} );