internetguy
Technical User
I have a javascript function that is called when clicking the submit buttion on a form, if there is information left out or if fields don't match it makes an alert notifying the user what they are missing. The only problem is that the page continues to be processed. I tried adding a return false; to try and stop it, but no go. Here's a basic idea for my if else statements
if(email.length == 0){
alert("You did not enter a valid email");
}
and so on.
if(email.length == 0){
alert("You did not enter a valid email");
}
and so on.