Created
October 30, 2012 16:52
-
-
Save jasontucker/3981492 to your computer and use it in GitHub Desktop.
Disable “enter” key in your forms
This file contains 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
$("#form").keypress(function(e) { | |
if (e.which == 13) { | |
return false; | |
} | |
}); | |
//Source: http://www.catswhocode.com/blog/10-awesome-jquery-snippets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment