Re: Splice elements in an array
Tuesday, February 10, 2004 01:10 PM
The problem is when you delete, you should roll back. Else you will skip that element. So if you have an array with just "cheese" in it, only alternate elements will be deleted!!
if(string_array[i][j] == text)
var rem = string_array[i].splice(j,1);
hope this helps