David
0
Q:

get row data in datatable

var table = $('#example').DataTable();

$('#example tbody').on( 'click', 'tr', function () {
    console.log( table.row( this ).data() );
} );
0
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
0
Javascript12345var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    console.log( table.row( this ).data() );} );
0

New to Communities?

Join the community