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

提交按钮支持标准的formnovalidate属性 #136

Closed
niceue opened this Issue Jul 6, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@niceue
Copy link
Owner

niceue commented Jul 6, 2014

之前因为formnovalidate在IE6/7/8下存在兼容性问题,于是采用了novalidate属性,但是在HTML5的标准里面,表单的提交按钮是支持formnovalidate属性。

v0.8.0开始只支持formnovalidate

用法如下:

<form>
    ...some fields
    <button type="submit">提交</button>
    <button type="submit" formnovalidate>提交不验证</button>
</form>

提交按钮添加formnovalidate属性后,点击该按钮时将不执行本次验证

@niceue niceue added this to the 0.8.0 milestone Jul 6, 2014

@niceue niceue added feature labels Jul 6, 2014

@niceue niceue closed this in ff0fa0d Jul 6, 2014

@niceue niceue added the new label Jul 12, 2014

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