如何防止input回车造成提交表单

在form表单或input中加入:onkeydown="if(event.keyCode==13){return false;}" 
posted @ 2018-05-30 11:32  likwin  阅读(170)  评论(0编辑  收藏  举报