JavaScript exit method -
I have a javascript method that I want to validate a form
if verification fails If (validation check ......) {return warning ("message")} and {// forward}
What I am doing though, if the form still seems to be submitted, then any thoughts?
You should return false after checking verification.
If (verification check ......) {warning ("message") false return; } Other {// procced}
Comments
Post a Comment