I have a form with two text boxes, one select drop down and one radio button. When the enter key is pressed, I want
form
Detect Enter key pressed on whole document:
$(document).keypress(function (e) { if (e.which == 13) { alert('enter key is pressed'); } });
http://jsfiddle.net/umerqureshi/dcjsa08n/3/