toEqual method #5

Closed
oivoodoo opened this Issue Sep 7, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@oivoodoo

oivoodoo commented Sep 7, 2010

I am using multiple creation forms for example: login, registration, remember. And in the page password field has the next name: 'user[password]' with id 'user_password'. May be replace toEqual method implementation of $(field) to finding the field for comparation in the scope of the fields in param form. for example: $(target).children().find(field) ... But add param to toEqual field for making as scope. toEqual: {id:'field', scope:true} or toEqual: {name:'user[field]', scope:true}. What do you think about it?

@jzaefferer

This comment has been minimized.

Show comment Hide comment
@jzaefferer

jzaefferer Mar 22, 2011

Collaborator

The method is equalTo, not toEqual. Independent of that, what's the issue with the current syntax? You can specify and selector, e.g. just select based on the id of the password field. That has to be unique anyway.

Collaborator

jzaefferer commented Mar 22, 2011

The method is equalTo, not toEqual. Independent of that, what's the issue with the current syntax? You can specify and selector, e.g. just select based on the id of the password field. That has to be unique anyway.

@jzaefferer jzaefferer closed this Mar 22, 2011

jzaefferer added a commit that referenced this issue Feb 29, 2012

mlynch added a commit to mlynch/jquery-validation that referenced this issue Mar 27, 2012

mlynch added a commit to mlynch/jquery-validation that referenced this issue Mar 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment