jquery keypress function
by Ranganathan[ Edit ] 2012-08-28 23:47:26
javascipt keypress function
$('#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.