[jQuery] Re: (validate) equalTo with complex names
Yeah i was aware of that but thought that the quoting within the rules method would overide it:) Glad its fixed now
thx
On Thu, Oct 15, 2009 at 2:33 PM, elubin <elubin@yahoo.com> wrote:
this initial example probably didn't work because of the period.
there is a documented way to use periods in jquery... in the FAQ
section "How do I select an element that has weird characters in its
ID? "
http://docs.jquery.com/Frequently_Asked_Questions
eric
On Oct 15, 7:36 am, ade <ade.godd...@gmail.com> 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home