JQuery enter USES the example


Eg:


//Click enter to log in the user
$("#txtLoginPwd").keydown(function (e) {
if (e.which == 13) {
UserLogin();
}
});

Note: “keydown” instead of “keypress”