deleting multiple rows
deleting multiple rows
mihomes
Posts: 165Questions: 23Answers: 0
Is it possible to pass an array for deleting multiple rows?
selected = ["#97", "#98", "#99", "#101", "#103", "#105", "#106"];
dt.rows(selected).remove().draw( false );
or does it need to be comma separated as :
dt.rows('#97', '#98', '#99', '#101', '#103', '#105', '#106').remove().draw( false );
EDIT : Figured this one out.
selected = ["#97", "#98", "#99", "#101", "#103", "#105", "#106"];
dt.rows(selected).remove().draw( false );
or does it need to be comma separated as :
dt.rows('#97', '#98', '#99', '#101', '#103', '#105', '#106').remove().draw( false );
EDIT : Figured this one out.
This discussion has been closed.
Replies
Allan