I have a function to validate all fields in a form:
validateForm: function() {
var validator = new Validation(this.form);
validator.validate();
}
There are two controls. First control need to validate only a,b,c fields. Second control need to validate only d,e,f fields. How can I achieve this?
To validate only a certain field, you can use:
Validation.validate(document.getElementById(id));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With