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

FAQ:如何实现点击提交按钮直接提交表单(而不验证) #61

niceue opened this Issue Oct 19, 2013 · 0 comments


None yet
1 participant
Copy link

niceue commented Oct 19, 2013

绑定了 formnovalidate 属性的按钮点击后将直接提交表单而不执行验证:

<form action="xxx.php" method="post">
    <input name="aaa" data-rule="required">
    <input name="bbb" data-rule="required;someRule">
    <button type="submit">提交</button>
    <button type="submit" formnovalidate>提交不验证</button>

@ghost ghost assigned niceue Oct 19, 2013

@niceue niceue closed this Oct 20, 2013

@niceue niceue changed the title 支持给submit按钮绑定novalidate跳过表单验证 FAQ:如何实现点击提交按钮直接提交表单(而不验证) Jan 17, 2016

@niceue niceue reopened this Jan 17, 2016

@niceue niceue closed this Jan 26, 2016

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