Can anyone tell me why this code is acting like this? I'm using VS 2010. There are a ton of other functions in this library that use the .indexOf() object with no problems. I don't know what I'm doing wrong here. I've research the .indexOf() object and I'm using it as I've seen used in book and online examples.
Please see attached GIF Image.