如何防⽌回车(enter)键提交表单,其实很简单,就⼀句话 οnkeydοwn="if(event.keyCode==13)return false;"把这句写在from标签⾥⾯就好了
<form method="post" onkeydown="if(event.keyCode==13){return false;}"></form>
如何防⽌回车(enter)键提交表单,其实很简单,就⼀句话 οnkeydοwn="if(event.keyCode==13)return false;"把这句写在from标签⾥⾯就好了
<form method="post" onkeydown="if(event.keyCode==13){return false;}"></form>