Good morning
I have been using the jquery validate function for a while and it’s great. However, wondering if its possible to have the group error label only clear out once BOTH (or 3 or 4) elements in the group are correct. For example, if I have an empty first and last name in a group, the error goes away once I type in just the first name. I know I can disable the onfocusout function, but I would rather not. Thank you!
This does indeed look like a bug in jQuery validate (you could file a bug here). To get around it you could define a very specific custom rule:
And still use the
groupsfunctionality:The custom rule feels unmaintainable and hacky, since if your field
ids change, your validation will break. However, it does get rid of the problem.Here’s an example: http://jsfiddle.net/Rqbws/