Hi,
I have some formfields with an onChange="checkNeg()"
The form itself has an onSubmit="return(Verify())"
This function looks like this:
But what happens when I hit 'ENTER' in a formfield:
the onChange="checkNeg()" runs AND the onSubmit="return(Verify())" runs.... so the alertmassages from the checkNeg() function appears twice.
Is there a way to disable onChange when submitting the form (by hitting the ENTER-button)?
Don't eat yellow snow!
I have some formfields with an onChange="checkNeg()"
The form itself has an onSubmit="return(Verify())"
This function looks like this:
Code:
function Verify(){
if (!checkNeg() || !checkValues())
{
return(false);
}
return (true);
}
the onChange="checkNeg()" runs AND the onSubmit="return(Verify())" runs.... so the alertmassages from the checkNeg() function appears twice.
Is there a way to disable onChange when submitting the form (by hitting the ENTER-button)?
Don't eat yellow snow!