How to delete current row with jquery datatable plugin

前端 未结 5 1890
既然无缘
既然无缘 2020-12-28 14:59

I have a column with buttons in a table I\'m using jQuery datatable plugin. The buttons say \"Remove\" and the idea is that when you click on that button it deletes the curr

5条回答
  •  抹茶落季
    2020-12-28 15:50

    Try this:

    var row = $(this).closest("tr").get(0);
    oTable.fnDeleteRow(oTable.fnGetPosition(row));
    

    If it doesn't work, check the following example

提交回复
热议问题