keypress jquery function

by Ranganathan 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.

Tagged in:

423
like
0
dislike
0
mail
flag

You must LOGIN to add comments
Tags
More...
Comments