We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
js里面写了 $('#xxx').on('click', function () { $('#c-name').removeAttr("data-rule"); }); 页面源码上的data-rule也确实移除了,但是提交时还是无法通过验证
The text was updated successfully, but these errors were encountered:
如果是要禁用一个字段的验证,不需要移除规则,只需要给 input 添加 HTML5 的 novalidate 属性。 如果实在要移除可以调用实例方法:setField https://validator.niceue.com/docs/methods.html#section-3-2
novalidate
setField
Sorry, something went wrong.
No branches or pull requests
js里面写了
$('#xxx').on('click', function () {
$('#c-name').removeAttr("data-rule");
});
页面源码上的data-rule也确实移除了,但是提交时还是无法通过验证
The text was updated successfully, but these errors were encountered: