I'm sure I could find my answer in a keyword search, but the search is down at the moment, so I apologize if I'm asking something that has been asked a million times.
All I want to be able to do is see if my variable matches another variable. I'm having no trouble doing this in a "case sensitive" situation, but as soon as I try to do a "case insensitive" match, I get screwed up. Here's a real stripped down version of what I'm doing.
Now, as long as my two form fields are exactly the same, I get a "true." What I want though is to be able to:
1. make the search case insensitive
2. get a true if ANY part of text1 matches text2. For example, if text1=Kevin and text2=kev I want to get a "true."
So, I've tried search(), match(), and text() and just can't get the syntax right. Thanks in advance for any help you all can give me.
Kevin
slanek@ssd.fsi.com
All I want to be able to do is see if my variable matches another variable. I'm having no trouble doing this in a "case sensitive" situation, but as soon as I try to do a "case insensitive" match, I get screwed up. Here's a real stripped down version of what I'm doing.
Code:
var myVar1 = form.text1.value;
var myVar2 = form.text2.value;
myVar1.test(myVar2);
1. make the search case insensitive
2. get a true if ANY part of text1 matches text2. For example, if text1=Kevin and text2=kev I want to get a "true."
So, I've tried search(), match(), and text() and just can't get the syntax right. Thanks in advance for any help you all can give me.
Kevin
slanek@ssd.fsi.com