Click Upvote Click Upvote - 4 months ago 16x
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?


You can wire up your own custom event

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