Skip to content

Instantly share code, notes, and snippets.

@jookyboi
Created September 27, 2013 17:20
Show Gist options
  • Save jookyboi/6731951 to your computer and use it in GitHub Desktop.
Save jookyboi/6731951 to your computer and use it in GitHub Desktop.
var e = jQuery.Event("keydown");
e.which = 50; // # Some key code value
$("input").trigger(e);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment