Hi all,

I thought I'd give you all (and Joern also) a heads-up on a problem I've
been having.

I use the validate() plugin on forms whose tags have names like
'user[email]'.
The 'rules' option to validate() has no problem with this, but I've now
started passing an array of server-side errors to showErrors() which then
fails.

The reason is that on line #538 of jquery.validate.js v1.1, the selector
resolves to jQuery("[EMAIL PROTECTED]") - I presume that the first closing
square bracket is interpreted by jQuery to be closing the selector instead
of part of the attribute.

The fix I have discovered is to amend line #538 to put single quotes around
the value, like so:

> element: jQuery("[EMAIL PROTECTED]'" + name + "']:first", this.currentForm)[0]
>

I'm not sure how advisable that fix is - if anyone can advise on that I'd be
very grateful.

As an aside - Joern this is the first time I've used validate, all I'll say
is thank you, it's a fantastic plugin very well thought-out.
--rob

-- 
Rob Desbois

Reply via email to