禁止文本框回车提交事件

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

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