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

The priority of passing rule by DOM is higher than by JS #212

Closed
niceue opened this Issue Jan 25, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@niceue
Copy link
Owner

niceue commented Jan 25, 2016

You can overwrite rule just by change the data-rule attribute

<input type="text" id="field1" data-rule="required;mobile">
$('#field1').attr("data-rule", "required;email");
// now the rule of "field1" has been changed to "required;email"

@niceue niceue added the improve label Jan 25, 2016

@niceue niceue added this to the 0.10.3 milestone Jan 25, 2016

@niceue niceue changed the title The priority of pass rule by DOM is higher than by JS The priority of passing rule by DOM is higher than by JS Jan 25, 2016

niceue referenced this issue Jan 25, 2016

@niceue niceue closed this Jan 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment