Created
April 12, 2017 17:23
-
-
Save joeworkman/8a7656254211e4dac9e43d3c58774019 to your computer and use it in GitHub Desktop.
Disable Total CMS form submission with the enter key
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
$(document).keypress(function(event){ | |
if (event.which == '13') { | |
event.preventDefault(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment