I have JQuery Datatable and I want to delete row, when delete link is clicked. It's working fine for first 10 rows, i.e. for the first page. When I move to any another from the pagination. It's not working. Here is my code:
$("#example tbody td.delete").click(function(event) {
var row = $(this).closest("tr").get(0);
oTable.fnDeleteRow( row );
});
All last td of a row has class "delete".
What should I do to work for all the pages or for all the records?