//登入區塊內按下Enter,則觸發登入按鈕
$(".Aclass").keypress(function(e) {
if (e.which == 13) {
$("#Btn").click();
//return false;
}
});
$("input").keypress(function (evt) {
//Deterime where our character code is coming from within the event
var charCode = evt.charCode || evt.keyCode;
if (charCode == 13) {
//Enter key's keycode
return false;
}
});
沒有留言:
張貼留言