I have a JavaScript method that i want to validate a form
if the validation fails so
if (validationChecks ...... ){
return alert("message")
}
else{
//proceed
}
however no matter what i do in the if the form still seems to submit, any ideas?
I have a JavaScript method that i want to validate a form
if the validation fails so
if (validationChecks ...... ){
return alert("message")
}
else{
//proceed
}
however no matter what i do in the if the form still seems to submit, any ideas?