keypress jquery function
by Ranganathan[ Edit ] 2012-08-29 21:36:09
<font size=5>
Keypress jquery function</font>
$('#my_text_box').keypress(function(e) {
if (e.which == 13) {
get();
}
});
13 is the key code for Enter.
Ideally, the code should be a part of your document.ready setup.