禁止文本框回车提交事件

在文本框中加入onkeydown="if(event.keyCode == 13)event.returnValue = false;"即可。

posted @ 2012-03-29 17:29  事理  阅读(646)  评论(0)    收藏  举报