Thanks Jaggi

Yeah that put me on the right path the below works:

 $(document).ready(function(){
 $("#registrationDetails").validate({
   rules: {
  "emailAddress.email": "required email",
  "emailAddress.emailRepeated": {
    equalTo: "input[name='emailAddress.email']"
  }
   }
});
});

thx again

Ade

On Thu, Oct 15, 2009 at 2:09 PM, Jaggi <[email protected]> wrote:

>
> oOps thinks that wrong:
>
>        $("input[name='emailAddress.emailRepeated']").rules("add", {
>                equalTo: "#emailAddress.email"
>        });
>
> i think you get the idea though.
>
> On Oct 15, 2:07 pm, Jaggi <[email protected]> wrote:
> > I had this problem recently but the only way i managed to get around
> > it was to do it via the custom caller. So for you you'd do:
> >
> >         $("input[name='emailAddress.email']").rules("add", {
> >                 equalTo: "#emailAddress.email"
> >         });
> >
> > On Oct 15, 12:36 pm, ade <[email protected]> wrote:
> >
> > > HI
> >
> > > Wondered if someone could help.
> > > I need to run a equalTo validation check on some inputs that use
> > > complex ids, they have fullstops in. I am trying to add the rules
> > > (using quotes also as specified) as per the documentation but it still
> > > doesnt seem to work. Code is here:
> >
> > > $(document).ready(function(){
> >
> > > $("#registrationDetails").validate({
> > >   rules: {
> > > "emailAddress.email": "required email",
> > > "emailAddress.emailRepeated": {
> > >   equalTo: "#emailAddress.email"
> >
> > > }
> > >   }
> > > });
> > > });
> >
> > > any help here would be great
> >
> > > thanks in advance
> >
> > > ade
>

Reply via email to