I am trying to remove the keydown event that I created using the following code:
$(document).keydown(function(e) { alert("Key Down"); });
when i use the following code:
$(document).off('keydown');
it produces the following error:
Uncaught TypeError: Object [object Object] has no method 'off'
can someone tell me the correct way to unregister from keydown event?
source share