Click Upvote Click Upvote - 9 months ago 45
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)