Andrew,
You were absolutely right. I had my blinders on trying to figure out why I couldn't compare the strings. I was actually validating for three possibilities in the if statement and I had an || where I needed an &&.
Thanks
I'm using JavaScript to validate information on a form prior to submission and I've run into a snag. One field on the form is for an order number which must begin with the letter 'n' (either upper or lower case). I'm using the following code to check for the leading 'n' using onSubmit to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.