The auto-submit feature of web forms (when the enter key is pressed) can be useful in some situations but less than desirable in other situations. This script focuses on the latter.
This script actually traps that default browser behavior so the web form is not submitted until validation actually passes. As well, when the enter key is pressed in a form element such as an input box, validation is forced before allowing the browser to submit the web form.
Test out the simple form below:
In order to begin working with this script, the two functions you will need to look at for your own validation requirements are "validationCheck()" and "validationCheckGroup()".