日期:2014-05-16  浏览次数:20403 次

jquery提交按钮回车(enter)事件
jquery提交按钮回车(enter)事件,谢谢,请代码

------解决方案--------------------
$(document).keydown(function (e) {
if (e.which == 13) {
$("#btnLogin").click();
}
});