> The fact that the script works for left but not right is what's killing me. > Add to that, once left is clicked then right works perfectly. So although > for some reason I have what might be a NAN index, it resolves itself once > the second (identical function) is called. This implies to me a difference > between cell[posX+1] and cell[posX-1] , in that one is a NAN the other > isn't.
If you publish a working demo, then we can solve it; in this case, the Fiddle is not sufficient. -- S.
