On a custom frontend page I have a form in which I use magento's js validation to validate inputs: name, email description, etc. When the form is submitted the validation is triggered and works properly. I am wondering if there is a way to manually invoke magento's js validation without requiring a "submit" action.
Here is what I use to apply the validation
var dataForm = $('#form-validate');
var ignore = null;
dataForm.mage('validation', {
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
}).find('input:text').attr('autocomplete', 'off');
and I am looking for
$("#form-validate").mageValidate(); // validate form fields
Let me know if you need more detail.
mage/validation
and then using$('#form-validate').validation();
but validation does not seem to be triggered