get row count datatable jquery code example
Example 1: table row count in jquery
// Table Row count in jquery
var rowCount = $('#myTable tr').length;
Example 2: datatable count number of rows
var table = $('#example').DataTable();
table.rows().count();
Example 3: get row data in datatable
Javascript12345var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () { console.log( table.row( this ).data() );} );