C
Cessna
Hello,
In my form validation, I'm testing a form input field to see if it contains
the same number as a variable contains.
if the variable is called "match1", and my user text field is named "guess1"
I'm trying to create a statement in my form validation function something
like this:
if (document.form1.guess1.value) !== (match1)
{
alert("Please guess again ...");
form1.guess1.focus();
return false;
}
i think i'm not doing the == statement properly,
can anyone give me a hand with this?
thanks!
CN
In my form validation, I'm testing a form input field to see if it contains
the same number as a variable contains.
if the variable is called "match1", and my user text field is named "guess1"
I'm trying to create a statement in my form validation function something
like this:
if (document.form1.guess1.value) !== (match1)
{
alert("Please guess again ...");
form1.guess1.focus();
return false;
}
i think i'm not doing the == statement properly,
can anyone give me a hand with this?
thanks!
CN