...be able to define custom selectors for the validation output div, this helps with having two output containers on the same page for two different forms
Created this so that if you have two forms on a page and wanted two different summary boxes you could update like this:
$("#loginForm").validity(function() {
// standard output summary class nested inside of the current form element
$.validity.outputs.summary.options.container= "#loginForm " + $.validity.outputs.summary.options.container;
$("#login_email").require().match('email');
$("#login_password").require();
});
$("#loginForm2").validity(function() {
$.validity.outputs.summary.options.container= "#completely-new-container-not-nested-in-my-form";
$("#login_email2").require().match('email');
$("#login_password2").require();
});
...be able to define custom selectors for the validation output div, this helps with having two output containers on the same page for two different forms
Created this so that if you have two forms on a page and wanted two different summary boxes you could update like this: