Return to Snippet

Revision: 46311
at May 17, 2011 07:07 by vagrantradio


Initial Code
//this works
e = jQuery.Event("keyup");
e.which = 13 //enter key
jQuery('input').trigger(e);

//this doesn't
e = jQuery.Event("keypress");
e.which = 13 //enter key
jQuery('input').trigger(e);

Initial URL

                                

Initial Description

                                

Initial Title
jQuery Simulate Keypress Trigger

Initial Tags

                                

Initial Language
jQuery