//回车登录事件
$(document).keypress(function(e) {
// 回车键事件
if(e.which == 13) {
jQuery(".confirmButton").click();
}
});
jquery中使用,.confirmButton是登录按钮的类名。
//回车登录事件
$(document).keypress(function(e) {
// 回车键事件
if(e.which == 13) {
jQuery(".confirmButton").click();
}
});
jquery中使用,.confirmButton是登录按钮的类名。