Public validation hook - mosbymc/validator GitHub Wiki
In the event you want validate a form without the user clicking on the "submit" button, there is a public validation hook that you can call initiate the validation. To use the public validation hook, simply call it with the id of the form passed in as the argument.
validator.validate("form1");
This will validate the form in the same manner as the user clicking the "submit" button, but allows a programmatic access to the validator to be run on any event you wish.
Continue to: Predefined validation rules