10 09/2014

html5 input pattern

最后更新: Wed Sep 10 2014 12:39:11 GMT+0800



<form onsubmit="alert('可以提交了');return false;">
<input class="text" pattern="^.+@.+\..+$" required />
<input type="submit" value="提交" style="font-size:16px;"/>
</form>