fnDeleteRow using tr element
fnDeleteRow using tr element
sparh
Posts: 11Questions: 2Answers: 0
Hi,
in http://www.datatables.net/ref#fnDeleteRow it is written
"{mixed}: The index of the row from aoData to be deleted, or the TR element you want to delete";
The tr id I want to delete is 2 (...)
I have tried without any success :
$("#delete").click(function() {
oTable.fnDeleteRow(2);
// or oTable.fnDeleteRow($("#2"));
});
Thanks
in http://www.datatables.net/ref#fnDeleteRow it is written
"{mixed}: The index of the row from aoData to be deleted, or the TR element you want to delete";
The tr id I want to delete is 2 (...)
I have tried without any success :
$("#delete").click(function() {
oTable.fnDeleteRow(2);
// or oTable.fnDeleteRow($("#2"));
});
Thanks
This discussion has been closed.
Replies
http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
Allan
There is one row that have
My delete button is :
$("#delete").click(function() {
oTable.fnDeleteRow(5);
});
It deletes a row but not the one with id="5" (I have also tested oTable.fnDeleteRow($("#5")); and the result is the same, it deletes a row but not the right one)
Thanks
Allan
is there a way to delete many rows in one time (For example I want to delete ids 5, 10, 15 45)?
Allan