Is it possible for jQuery Validation plugin to add seperate errorClass for seperate elements?
Posted
by Moss
on Stack Overflow
See other posts from Stack Overflow
or by Moss
Published on 2010-04-08T11:30:55Z
Indexed on
2010/04/08
11:33 UTC
Read the original article
Hit count: 169
jquery-validate
I'm wondering if it's possible to have the plugin add different classes to different elements.
For example, rules are specified as
rules: {
input1: { required: true, maxlength: 5 },
input2: { digits: true, min: 100 }
}
But I can't do this
errorClass: {
input1: "class_A",
input2: "class_B"
}
How do I make the plugin add different classes?
© Stack Overflow or respective owner