How to trap the backspace key using jQuery?
jquery
Solution
try this one :
$('html').keyup(function(e){if(e.keyCode == 8)alert('backspace trapped')})
Problem
It does not appear the jQuery keyup, keydown, or keypress methods are fired when the backspace key is pressed. How would I trap the pressing of the backspace key?