jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: Release: jQuery Validation plugin 1.3

Re: [validate] Re: Release: jQuery Validation plugin 1.3

by Jörn Zaefferer-2 :: Rate this Message:

Reply to Author | View in Thread


Translations are always welcome, please mail them directly to me,
preferably UTF-8 encoded.

About the allowDuplicateNames modification: Could you create a ticket
for that? http://dev.jquery.com/newticket

Thanks
Jörn

On Mon, May 12, 2008 at 3:22 PM, a_claudiu <apclaudiu@...> wrote:

>
>  Hi,
>  I'm using your plugin and I like it a lot but I needed to extend it a
>  little bit. I wanted to display error messages for multiple input text
>  having the same name but different id's. Because in the plugin is
>  checking only the first text box matching the name I added the next
>  lines:
>
>  allowDuplicateNames: false, in the default settings and
>
>  // select only the first element for each name, and only those with
>  rules specified
>  if ( ((this.name in rulesCache) && (!
>  validator.settings.allowDuplicateNames)) || !validator.objectLength($
>  (this).rules()) )
>
>  instead of
>
>  // select only the first element for each name, and only those with
>  rules specified
>  if ( this.name in rulesCache || !validator.objectLength($
>  (this).rules()) )
>
>  I'm finding this modification useful for me and if you like it you can
>  introduce it also in the plugin. I have also some translations for the
>  romanian language if you want to add them, just tell me how to send
>  them.
>  Regards,
>  Claudiu
>

 « Return to Thread: Release: jQuery Validation plugin 1.3

LightInTheBox - Buy quality products at wholesale price!