I am trying to get row position in datatables using the following code
var table = $('#UserInformationTable').dataTable(); var row_id = table.fnGetPosition($('#row_' + id)); table.fnDeleteRow(row_id);
$('#row_' + id) returns tr.
fnGetPosition does not work. I get this error:
TypeError: cannot call 'toUpperCase' method from undefined
What am I doing wrong?
javascript jquery jquery-datatables
Nick
source share