As described in this section of the Validation documentation,
'equalTo:' takes an expression which relates to another element, and
it goes inside the 'rules:' object in the options.

You seem to be describing the messages below. Where is your code that
defines the rules?

May I recommend posting your code to JSBin.com so that we can
collaboratively debug it?

-E


On Oct 13, 1:48 pm, bookme <[EMAIL PROTECTED]> wrote:
> Hi Eric!
>
>         "data[User][password]": {
>                                 required: "Provide a password",
>                                 rangelength: jQuery.format("Enter at least 
> {0} characters")
>                         },
>                         "data[User][password2]": {
>                                 required: "Repeat your password",
>                                 minlength: jQuery.format("Enter at least {0} 
> characters"),
>                                 equalTo: "Enter the same password as above"
>
> This equalTo is not working ?
>
> Do u have any solution why is not working?
>
> Thanks
>
> On Oct 12, 11:50 pm, Eric <[EMAIL PROTECTED]> wrote:
>
> > Plugins sometimes conflict.  One of the mark of a goodpluginis a
> > minimum of conflicts. Also, the tricks we sometimes have to play on
> > the DOM can interact in non-intuitive ways.
>
> > Can you please describe in more detail the problem that you're having?
>
> > You may also try to use other plugins, such as jqModal (http://
> > dev.iceburg.net/jquery/jqModal/) instead of Thickbox.
>
> > -E
>
> > On Oct 12, 2:32 pm, bookme <[EMAIL PROTECTED]> wrote:
>
> > > Thanks a lot to u jorn.
>
> > > I am facing one more problem.
>
> > > Belowvalidationis working without thickboxpluginbut when I used it
> > > in thickbox it's not working ?
>
> > > I think equalTo function is not working in thickbox?
>
> > > "data[User][password2]": {
> > >                                 required: "Repeat your password",
> > >                                 minlength:jQuery.format("Enter at least 
> > > {0} characters"),
> > >                                 equalTo: "Enter the same password as 
> > > above"
> > >                         }
>
> > > Please help me
>
> > > Thanks
>
> > > On Oct 12, 8:30 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Seehttp://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...
>
> > > > Jörn
>
> > > > On Sun, Oct 12, 2008 at 4:49 PM, bookme <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi, I am usingJquerypluginfor client sidevalidation. But due to a
> > > > >filednameI am facing a problem.
>
> > > > > Example
> > > > > var validator = $("#UserSignupForm").validate({
> > > > >                rules: {
> > > > >                        data[User][username]: {
> > > > >                                required: true,
> > > > >                                minlength: 2,
> > > > >                                remote: "users.php"
> > > > >                        }
>
> > > > > });
>
> > > > > HTML :<inputid="id_username1" name="data[User][username]" type="text"
> > > > > value="" maxlength="50" />
>
> > > > > When I am using data[User][username] as a filed name injquery
> > > > >validation,  it's not working but in case of other name like username
> > > > > it's working. I think there is problem of [][] (bracket of array). But
> > > > > I can notchange data[User][username] so I  want to use id_username1
> > > > > instead of filename invalidationpluginbut don't know how to use
> > > > >ID?.
>
> > > > > Is there any other solution?
>
> > > > > Also I have to face same problem in many plugins becuase CakePHP
> > > > > return name like data[User][username] so How can I override a name
> > > > > fromID?
>
> > > > > Please Help me
> > > > > Thanks

Reply via email to