Eg:
//Click enter to log in the user
$("#txtLoginPwd").keydown(function (e) {
if (e.which == 13) {
UserLogin();
}
});
Note: “keydown” instead of “keypress”
Eg:
//Click enter to log in the user
$("#txtLoginPwd").keydown(function (e) {
if (e.which == 13) {
UserLogin();
}
});
Note: “keydown” instead of “keypress”