[jQuery] jquery Validate
[jQuery] jquery Validate
Hello,
I am using the validate plugin and displaying the errors using
grouping technique. Works fine, and I get a single error message at
the end of it.
text: "text1 text2 text3 text4"
},
errorPlacement: function(error, element) {
if (element.attr("name") == "text1" || element.attr("name") ==
"text2" || element.attr("name") == "text3" || element.attr("name") ==
"text4" )
{
error.insertAfter("#text4");
}
else
error.insertAfter(element);
}
text1,text2,text3,text4 are 4 text boxes.
Now, when I go and edit a text box with error, the error message for
others disappear too. Can anybody tell me how I could go about it.