Get currently selected rows by fnGetData- DataTables 1.94

Get currently selected rows by fnGetData- DataTables 1.94

johnpalaganasjohnpalaganas Posts: 9Questions: 2Answers: 0

Hello,

I'm currently stuck on using DataTables 1.94 and can't updrade just yet to the latest 1.10 so I can't use the fnGetSelected.

My problem is getting the value of each (row and column) that are CURRENTLY selected.

The code below is only good for getting the value(row and column) of the LAST selected row.

How do I get the value of ALL CURRENTLY SELECTED ROWS?

oTable.$('tr').click( function () {
    var selectedRow = oTable.fnGetData( this );
    $(this).toggleClass('row_selected');
    console.log(selectedRow[1]);
});

Thank you,
John

This discussion has been closed.