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

How can I ignore input for validation? #203

Open
satch84 opened this issue May 12, 2017 · 0 comments
Open

How can I ignore input for validation? #203

satch84 opened this issue May 12, 2017 · 0 comments

Comments

@satch84
Copy link

satch84 commented May 12, 2017

Hello!

Here is my problem, I have a form with 5 inputs (always shown, need validation) + 3 inputs with attribute disabled in a display:none div. If the div is opened, the disabled attribute is removed and the inputs should be checked by the validator. If the div is closed, the inputs should be ignored by validator.

So far, the validation is ok, it works fine as it should for the 5 inputs, but when the div with the 3 disabled inputs is closed, the validator still returns errors, it should return errors for no completion only if the div is opened, thus, if the inputs does'nt have the disabled attribute.

So, how could I set a rule to tell the validator "if the input is disabled, just ignore it"?

Thank you for reading!
Satch

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

1 participant