I\'m trying to run a method when the enter key has been pressed. This method is already being used by a button. Basically, when the user fills in a text field and clicks a s
$(".input_loginform").keypress(function(e){
if (e.which == 13){
e.preventDefault();
alert("User pressed 'Enter' in a text input. sender form #"+this.form.id);
postlogin("#"+this.form.id);
}
});