Enable validation on a form
To enable validation on a form, simply add the class name validate
to it.
Changing the class name
If you're already using validate for something else you can change
which class Validatious looks for through v2.Form.autoValidateClass.
This setting must be set in an external script, or inline script block after
Validatious has been loaded.
v2.Form.autoValidateClass = 'process-it';
You can now enable validation on a form with this class name like this.
When you override the class name, the original "validate" will no longer trigger validation.
NB! When validating several forms on the same page, each form must have a unique id.
Next: Add validators to fields | Back to HTML extension features index