How to delete current row with jquery datatable plugin

前端 未结 5 1883
既然无缘
既然无缘 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:44

    How about this:

        // Delete Row
        $('.glyphicon-minus').on("click", function() {
            configTable.row($(this).closest("tr").get(0)).remove().draw();
        });
    

提交回复
热议问题