Into the last cell on a table with datatables i use icons for some actions. One of them are a delete-icon, with this the data into this row will delete with ajax. Now i'd like to delete the row also from datatable and i try it to do so:<br />
<code class='multiline brush: js;'>var row = $(this).closest('tr');
$('.dataTable').dataTable().fnDeleteRow(row);</code>
<br />
But this will delete the wrong row into the table. The datatable object will create in another function and i don't have it globally. <br />
How can i delete the correct row?<br />
<br />
Thanks,<br />
Stefan
↧
fnDeleteRow with jQuery
↧