Side navigation
#4211 closed enhancement (invalid)
Opened February 22, 2009 06:54PM UTC
Closed February 05, 2010 08:36PM UTC
[validate] Allow for easy error placement with groups feature
Reported by: | cfjedimaster | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.4 |
Component: | plugin | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It seems like you will always want custom error placement when you use the groups feature. It would be nice if you didn't have to actually write a custom handler just because you are grouping fields together. Imagine being able to change this:
groups: {
fullname: "firstname1 lastname1"
},
errorPlacement: function(error, element) {
if (element.attr("name") == "firstname1"
|| element.attr("name") == "lastname1" )
error.insertAfter("#lastname1");
else
error.insertAfter(element);
},
To
groups: {
fullname: {
fields: "firstname1 lastname1",
errorplacement: "lastname1"
}
},