Form not validating
Most Java Script form validation libraries are large, and often require other libraries like j Query.
For example, Mail Chimp’s embeddable form includes a 140kb validation file (minified).
It utilizes j Query to hide and show inputs as needed as well as power three plugins.
To determine whether the form has been submitted by the user, either check the request method (an example follows in the next section) or check for the presence of a specific form control (usually the submit button).
It includes the entire j Query library, a third-party form validation plugin, and some custom Mail Chimp code.
In fact, that setup is what inspired this new series about modern form validation.
Whichever method you use, if the form has been submitted, it should be validated.
If it has not been submitted, bypass the validation and display a blank form.