HTML 5 <button> formnovalidate 屬性
實例
帶有兩個提交按鈕的表單(進(jìn)行驗證或不進(jìn)行驗證):
<form action="demo_form.asp" method="get">
E-mail: <input type="email" name="userid" /><br />
<button type="submit" >提交</button><br />
<button type="submit" formnovalidate="formnovalidate"
>進(jìn)行沒有驗證的提交</button>
</form>
HTML 4.01 與 HTML 5 之間的差異
formnovalidate 屬性是 HTML 5 中的新屬性。
語法
<button formnovalidate="formnovalidate">