jquery keypress function

by Ranganathan 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.
774
like
0
dislike
0
mail
flag

You must LOGIN to add comments