//回車登錄事件
$(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是登錄按鈕的類名。