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

Option to ignore particular fields #96

Open
nfplee opened this issue Feb 17, 2024 · 1 comment
Open

Option to ignore particular fields #96

nfplee opened this issue Feb 17, 2024 · 1 comment

Comments

@nfplee
Copy link

nfplee commented Feb 17, 2024

I'm looking at using this library. One feature I believe is missing, is the ability to ignore particular fields. For example, using jquery.validate I would've been able to say:

$.validator.setDefaults({
    ignore: ':hidden:not(.validate-hidden)'
});

This allows me to conditionally specify which hidden fields I may validate. This can be expanded for additional cases too (such as the option of not validating disabled fields).

@dahlbyk
Copy link
Collaborator

dahlbyk commented Feb 20, 2024

This seems pretty straightforward:

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