SyntaxFix
Write A Post
Hire A Developer
Questions
I believe this is what you're looking for:
var press = jQuery.Event("keypress"); press.ctrlKey = false; press.which = 40; $("whatever").trigger(press);
From here.