I have a number of validations in my form using javascript. While validating, I would like the validation to stop and set focus to the text box that has a false validation. Like the exit sub in vbscript. Here is what I have so far:
if ( document.calcform.SqFt.value == "" )
{
alert ( "Please enter in the approximate Square Footage of you house." );
document.calcform.SqFt.focus();
valid = false;
}
any help appreciated
if ( document.calcform.SqFt.value == "" )
{
alert ( "Please enter in the approximate Square Footage of you house." );
document.calcform.SqFt.focus();
valid = false;
}
any help appreciated