So I have a problem with this FOR loop that I just can't quite figure out. In this case, I know this needs to iterate as least twice. The array, at a minimum, looks something like this...

```
    dTrackerArray = {sParentValue, 1234, sParentValue, 5678}

```

But for some reason this for loop is only removing one instance instead of all of them.

```
     var check = $.inArray(sParentValue, dTrackerArray);
      if (check != -1) {
       for(var i = dTrackerArray.length; i > 0; i--) {
         if( dTrackerArray[i] === sParentValue ) {
          dTrackerArray.splice(i,1);
          dTrackerArray.splice(i-1,1);
          }

      }}

```

I really appreciate any help I can get here! Thanks!

EDIT: The 2nd splice is to remove the 1234 "associated" with the sParentValue. It seems to work ok.