views:

6

answers:

0

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?