Created
June 27, 2013 19:19
-
-
Save jhammann/5879513 to your computer and use it in GitHub Desktop.
I created a snippet for showing an element (a link to an edit form, hence the element classname) on keydown.
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
$("body").keydown(function(e){ | |
if (e.keyCode == 69) { | |
$('.editLink').toggle(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment