[jQuery] Re: Jquery validation plugin question

2009-03-27 Thread markstegg...@googlemail.com
Thanks. It gives me an error saying "element.attr is not a function" What is wrong with this: highlight: function(element, errorClass) { if (element.attr("name") == "aupairLanguageList") $("#multiSelect-aupairLanguageList-title").addClass("error"); }, unhighlight: function(elem

[jQuery] Re: Jquery validation plugin question

2009-03-26 Thread Jörn Zaefferer
Use the highlight and unhighlight options for that. Jörn On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com wrote: > > Hello, > > Thanks for building this validation plugin, I like it. I have a > question: > > The error class automatically gets added to the label with the same > for="