get row data in datatable

JavaScript
Javascript12345var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    console.log( table.row( this ).data() );} );Javascript1234567891011121314var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    var d = table.row( this ).data();         d.counter++;     table        .row( this )        .data( d )        .draw();} ); // Note that row().invalidate() could also be used for this example case
Source

Also in JavaScript: