Skip to content

Add an example of a rule with a param and a depends #7

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

Closed
wants to merge 1 commit into from

Conversation

ryleyb
Copy link
Contributor

@ryleyb ryleyb commented Jun 5, 2014

As discussed over at jquery-validation/jquery-validation#451

Needed an example of how rules with parameters work.

@jzaefferer
Copy link
Collaborator

Thank you for the contribution. This is mostly looking good. The only problem I see with the example is that you shouldn't need the depend in this case, since an empty, non-required field will not enforce the minlength option either.

@jzaefferer
Copy link
Collaborator

I've adjusted the example to use something where the depends actually makes the difference. Its now live on http://jqueryvalidation.org/validate#rules

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

Successfully merging this pull request may close these issues.

2 participants