Getting last row data in datatable

Getting last row data in datatable

fymousfymous Posts: 1Questions: 1Answers: 0

Hi,
I want to get last row data of datatable without performing any event (click event).

var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
console.log( table.row( this ).data() );
} );

Here I am clicking an row to get the last row data.How can I get the last row data without the click event ?

This discussion has been closed.