Ertyuaw
Ertyuaw

var table = $('#userTable').DataTable();
table.rows('.rowSelected').remove().draw();
isn't working.
My data is coming from ajax and that I have a delete button. When I click that it calls an API with Ajax call and if success should remove the selected row/rows. However, it doesn't delete even the code is being executed and it has a class .rowSelected added when the row is clicked with checkbox. I don't like page being refreshed but manipulate the DOM instead since DataTable has already .remove().draw() method.
This discussion has been closed.