Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

fnDeleteRow with jQuery

$
0
0

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(&#039;tr&#039;);
$(&#039;.dataTable&#039;).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


Viewing all articles
Browse latest Browse all 1816

Trending Articles