SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to trigger the keypress or keydown event then all you have to do is:
var e = jQuery.Event("keydown"); e.which = 50; // # Some key code value $("input").trigger(e);