Magento Validate Form Only Defined Fields

I have a function to check all fields in a form:

validateForm: function() { var validator = new Validation(this.form); validator.validate(); } 

There are two controls. The first control should check only the fields a, b, c . The second control should check only d, e, f fields . How can I achieve this?

+7
source share
1 answer

To check only a specific field, you can use:

 Validation.validate(document.getElementById(id)); 
+14
source

All Articles