before jquery 1.6 ant mobile beta released I use this code to change label color, but now it's not work I change validation plugin to 1.8.1 but still the same the regular validation (error message after textfield) work fine but the label color change code is not this is the code
- errorElement: "span",
- errorPlacement: function(error, element) {
- $(element).siblings("span").append("");
- },
- highlight: function(element) {
- $(element).siblings("span").addClass("error");
- },
- unhighlight: function(element) {
- $(element).siblings("span").removeClass("error");
- }
Aumer Hadi
Sharing Knowledge