[jQuery] [validate] Group Validation, Validation Events
I have a few questions, given that I'm new to the validation plugin.
1. We validate groups of controls; validation for the entire group
succeeds if at least one field is present -- call it REQUIRED on
steroids. To implement this, we use one call to addMethod + one CSS
class per group of controls. (Is there a better way?) Now assume I
submit a form containing one such group with three fields, all blank.
I get three validation messages, one next to each field. So far so
good. Now assume I enter a value in one of the fields and blur it. How
can I cause all the remaining fields to validate and have their
messages disappear?
I can cause the fields within a group to validate by placing blur
events and triggering validate for the entire group of fields. But
this is costly; what I'm really looking for here is an event from the
validator that triggers whenever some part of the form is being
validated. That would be more natural. Is there such an event?
2. I'm trying to put the validation messages in tooltips. Again, I
miss this validation event to let me scan the form and create the
tooltips.
Is there such a validation event or is it on the TODO list? (Note: The
invalidHandler function only executes when I try to submit the form,
not when a control is validated; as such, it doesn't fit the bill.)