I am fetching a table using jquery in the following way:
var table = $.fn.dataTable.fnTables(true);
I want to append a row to the table after the last row, I tried:
$("tr", table).after('<tr>...</tr>');
It appends after the first row and not last.
$("tr", table).last().after('<tr>...</tr>');tableworks as expected: jsfiddle.net/ej7bsoz6 (adds it after every row)