Yes, I need to do somewhat the same thing as the "groups" option does, but the problem is that I have 20 - 30 products and I would like to add/remove products without having to update the validation each time. Here's what the docs say about the "groups" option: > A group consists of an arbitrary group name as the key and a space separated > list of element names as the value.
I guess I'm looking for a more general and expandable way to do this... On Oct 30, 7:35 pm, w1ntermut3 <[EMAIL PROTECTED]> wrote: > If I understand you right, I think you need the "groups" option: > > $("#myform").validate({ > groups: { > username: "product1 product2" > } > > }); > > AFAIK, that'll group error messages for your selected elements.