表单中点击回车自动提交数据

<form action="**.php" method="post">

<input type="text" name="username"/>

<input type="password" name="pwd"/>

<input type="submit" onclick="if(event.keyCode==13){gosubmit();}">//Enter 的键值是13

</form>

posted @ 2017-03-06 10:13  tomsen_jin  阅读(795)  评论(0编辑  收藏  举报