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

Add and remove data-required #63

Open
sctechcgms opened this issue Mar 12, 2016 · 1 comment
Open

Add and remove data-required #63

sctechcgms opened this issue Mar 12, 2016 · 1 comment

Comments

@sctechcgms
Copy link

I have the following JS order:

$ ( "# Aux"). Change (function () {
             $ ( "# Name") focus ().;
             $ ( "# Name") closest ("div") removeClass ("error")..;
             if ($ ( "# aux"). val () === "Physics") {
                 $ ( "# Organ") attr ("data-required", true).;
             } Else {
                 orgao.removeAttr ("data-required");
             }
         });

But even with the removeAttr () function when I try to send the form, the validate () again adds class 'error'

@richyarD
Copy link

richyarD commented Jun 1, 2016

Same problem here: after deleting all data-* attributes and 'error' class from inputs, after trying to submit the form, plugin adds again 'error' class to input, thus blocking the form submit.

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