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.
var result = "";
What should it be?
From what you're doing with the num1 variable, it seems that it should be the value of the field, rather than a reference to the field itself.