I need to get the first displayed row value of data-rowNum attribute when next page event if fired.
My HTML table:
<tr data-rowNum="1">Some text</tr>
<tr data-rowNum="2">Some text</tr>
<tr data-rowNum="3">Some text</tr>
Here is the code I use, but not getting the value, only an object.
$('#historico').on( 'page.dt search.dt order.dt', function () {
alert(tabla.row( 0 ).data('rowNum'));
} );