What is the best way to simulate a user entering text in a text input box in JS and/or jQuery?
I don\'t want to actually put text in the input box,
To trigger an enter keypress, I had to modify @ebynum response, specifically, using the keyCode property.
e = $.Event('keyup'); e.keyCode= 13; // enter $('input').trigger(e);