Skip to content

Instantly share code, notes, and snippets.

@jasontucker
Created October 30, 2012 16:52
Show Gist options
  • Save jasontucker/3981492 to your computer and use it in GitHub Desktop.
Save jasontucker/3981492 to your computer and use it in GitHub Desktop.
Disable “enter” key in your forms
$("#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