[jQuery] Re: adding different class for only 1 error element?

2008-11-24 Thread Cronet
Thank you for your reply. Your solution worked fine... I could add a different class to one only one error. A further question: Is it possible to wrap only 2 of the errors with an extra container? Is this possible with 'errorLabelContainer', or is that globally set ?! On 23 Nov., 22:24, Dan

[jQuery] Re: adding different class for only 1 error element?

2008-11-23 Thread Daniel
Hi AxIF, you can use the errorPlacement: errorPlacement: function(error, element) { if(element.attr("id") == 'cname'){ // match your element's id error.addClass("invalid"); // add invalid class error.appendTo(element.parent()); // this line