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