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

在form表单或input中加入: onkeydown = "if(event.keyCode==13){return false;}" 

猜你喜欢

转载自www.cnblogs.com/likwin/p/9109995.html