Skip to content

Instantly share code, notes, and snippets.

@JamieHouston
Created February 8, 2012 19:08
Show Gist options
  • Save JamieHouston/1772313 to your computer and use it in GitHub Desktop.
Save JamieHouston/1772313 to your computer and use it in GitHub Desktop.
jquery check for enter key
$('#input_text').on('keyup', function(e){
if (e.keyCode == 13) doTheWork();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment