I just did something similar to your sollution but ended up in the
same problem (duplicating the error-message). Did you already found
the sollution to it?!
On 3 nov, 09:55, Torgeir [EMAIL PROTECTED] wrote:
Yes, I need to do somewhat the same thing as the groups option does,
but the problem
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
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.
3 matches
Mail list logo