Created
May 19, 2012 10:02
-
-
Save mindaslab/2730314 to your computer and use it in GitHub Desktop.
jQuery code for enter key capture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#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