31
rated 0 times
[
35]
[
4]
/ answers: 1 / hits: 20057
/ 13 Years ago, tue, may 10, 2011, 12:00:00
I need to bind the 'enter' key on the keyboard to a specific javascript method, but ONLY when a certain text field is in focus.
<input id=post type=text style=width:400px;/>
How would I do this?
I know you can do it with forms and stuff that have a submit action, but can I just bind the 'enter' key to a specific function when this above input
field is in focus?
More From » jquery