Created
June 30, 2014 15:27
-
-
Save jasonyost/a0e213eea93f90c74292 to your computer and use it in GitHub Desktop.
Prevent tab key press in JS
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
$('.entry-field').keydown(function(event){ | |
if (event.keyCode == 9) { | |
event.preventDefault(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment