Deleting Multiple Selected Table Rows Using Only Javascript
I would like to delete selected rows in a table using javascript but problem is that once a row is deleted the index changes. This problem is confounded because only specific rows
Solution 1:
Sort your Array from the bigger to the lower elements.
function compareNumbers(a, b)
{
return b - a;
}
And then remove from the Biggest to the smallest.
Post a Comment for "Deleting Multiple Selected Table Rows Using Only Javascript"