document.onkeydown = function (e) { var theEvent = window.event || e; var code = theEvent.keyCode || theEvent.which; if (code == 13) { $("#add_submit").click(); } }
按回车键提交表单
原文:http://www.cnblogs.com/hgj123/p/6346450.html