jquery提交按钮回车(enter)事件
jquery提交按钮回车(enter)事件,谢谢,请代码
[解决办法]
$(document).keydown(function (e) {
if (e.which == 13) {
$("#btnLogin").click();
}
});
发布时间: 2012-04-12 15:46:35 作者: rapoo
jquery提交按钮回车(enter)事件
jquery提交按钮回车(enter)事件,谢谢,请代码
[解决办法]
$(document).keydown(function (e) {
if (e.which == 13) {
$("#btnLogin").click();
}
});