title: JQuery simulating keypress event on an input field
body: <p>I have an input field which is dynamically filled with some AJAX, and once it's filled I would like to have JavaScript to automatically press &quot;Enter&quot; (key event 13) on that input inducing another function, which is hidden to me, to trigger.</p>
  <p>Would it be possible with jQuery? I have this code right now, which is not working:</p>
  <p><code>$('#myInputId').focus().trigger({ type : 'keypress', which : 13 });</code></p>
  <p>Do you have any clue on what am I doing wrong?</p>