title: Press the enter key in a text box with jQuery
body: <p>How can I mimic pressing the enter button from within a <code>&lt;input&gt;</code>, using jQuery?</p>
  
  <p>In other words, when a <code>&lt;input&gt;</code> (type text) is in focus and you press enter, a certain event is triggered. How can I trigger that event with jQuery?</p>
  
  <p>There is no form being submitted, so <code>.submit()</code> won't work</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Okay, please listen carefully, because my question is being misinterpreted. I do NOT want to trigger events WHEN the enter button is pressed in textbox. I want to <em>simulate</em> the enter button being pressed inside the textbox, and trigger this from jQuery, from <code>$(document).ready</code>. So no method involving <code>on.('keypress')...</code> or stuff like that is what I'm looking for.</p>