Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toEqual method #5

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

toEqual method #5

oivoodoo opened this issue Sep 7, 2010 · 1 comment

Comments

@oivoodoo
Copy link

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
Copy link
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.

jzaefferer added a commit that referenced this issue Feb 29, 2012
mlynch pushed a commit to mlynch/jquery-validation that referenced this issue Mar 27, 2012
mlynch pushed 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants