I need to know how to trigger an enter key on an input. That is, in response to some other event (not a keypress), I need to trigger a keypress of value 13.
(Clarif
You can do this -
var e = $.Event( "keypress", { which: 13 } ); $('#yourInput').trigger(e);