Click Upvote Click Upvote - 2 years ago 96
jQuery Question

JQuery Event for user pressing enter in a textbox?

Is there any event in Jquery that's triggered only if the user hits the enter button in a textbox? Or any plugin that can be added to include this? If not, how would I write a quick plugin that would do this?

Answer Source

You can wire up your own custom event

   //do stuff here
    if(e.keyCode == 13)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download