SyntaxFix
Write A Post
Hire A Developer
Questions
Demo Here
var e = jQuery.Event("keypress"); e.which = 13; //choose the one you want e.keyCode = 13; $("#theInputToTest").trigger(e);