How to remove rows which the second cell has value "animal" and third cell has value "tiger"
How to remove rows which the second cell has value "animal" and third cell has value "tiger"
cecilfang
Posts: 1Questions: 1Answers: 0
Hi All,
I'm new for this plugin.
How can I remove rows which the second cell has value "animal" and third cell has value "tiger" in one table?
My code:
var table = $('tableID').DataTable();
table.rows().each(function() {
var rowData = table.row(this).data();
var cell2 = rowData[1];
var cell3 = rowData[2];
if(cell2 == "animal" && cell3 == "tiger") this.remove().draw();
});
Thanks for any help!
This discussion has been closed.