jquery提交按钮回车(enter)事件,该怎么处理
jquery提交按钮回车(enter)事件
jquery提交按钮回车(enter)事件,谢谢,请代码
------解决方案--------------------
$(document).keydown(function (e) {
if (e.which == 13) {
$("#btnLogin").click();
}
});
jquery提交按钮回车(enter)事件,谢谢,请代码
------解决方案--------------------
$(document).keydown(function (e) {
if (e.which == 13) {
$("#btnLogin").click();
}
});