Hi Jörn, I have just tested your suggestion. Sadly, it does not work,
if I add "password:true to my HTML, I get this:

jQuery.validator.methods[rule.method] has no properties
http://localhost/de/js/jquery.validate.pack.js
Line 14

I am following the example on your page, the one with the separate
errorContainer . I´m using the metadata plugin in conjunction with the
validation plugin.

Thanks

On Sep 23, 11:12 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> voltron schrieb:> Could you show me how I would implement this using the code 
> above?
> > Another thing, the code below, using password:true causes errors and
> > does not work with Jquery 1.2
>
> > <input id="password1" type="password" name="password1"
> > class="{validate:{required:true, password:true}}">
>
> Just add also this to your page:
>
> jQuery.validator.addMethod("password", function( value, element, param ) {
>     return this.optional(element) || value.length >= 6 &&
> /\d/.test(value) && /[a-z]/i.test(value);}, "Your password must be at least 6 
> characters long and contain at
>
> least one number and one character.");
>
> Otherwise your code should be fine.
>
> -- Jörn

Reply via email to