Skip to content

Instantly share code, notes, and snippets.

@mindaslab
Created May 19, 2012 10:02
Show Gist options
  • Save mindaslab/2730314 to your computer and use it in GitHub Desktop.
Save mindaslab/2730314 to your computer and use it in GitHub Desktop.
jQuery code for enter key capture
$('#input_text').keyup(function(e) {
//alert(e.keyCode);
if(e.keyCode == 13) {
alert('Enter key was pressed.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment