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 to Disable the Validator #65

Open
som007 opened this issue Nov 28, 2014 · 1 comment
Open

How to Disable the Validator #65

som007 opened this issue Nov 28, 2014 · 1 comment

Comments

@som007
Copy link

som007 commented Nov 28, 2014

Hi,

I want to disable Validation and want to close the error popup from java Script method.

Is it possible with this version ?

@whatgoodisaroad
Copy link
Owner

Sure, just wrap the contents of your validation function in an if block.

 $("form").validity(function() {
    if (!isDisabled) {
        $("#quantity")
            .require()
            .match("number");
    }
});  

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