I am using the following JQuery and my Keydown event doesn't seem to be "firing". Can someone please tell me what I may be doing wrong? When I press the <CTRL> key I only get the alert when I release it. Same thing when I press the V key. I am using IE 8.
var ctrlDown = false;
var pasteFlag = false;
var ctrlKey = 17, vKey = 86;
if (e.keyCode == ctrlKey) alert("Ctrl True");
if (e.keyCode == vKey) alert("V True");
if (e.keyCode == ctrlKey) alert("Ctrl False");
if (e.keyCode == vKey) alert("V False");
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn the basics of jQuery including how to code hide show and toggles.
Reference your jQuery libraries:
Include your new external js/jQuery file:
Write your first lines of code to setup your site for jQuery…