Skip to content

Add and remove data-required #63

@sctechcgms

Description

@sctechcgms

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions