I\'m trying to prevent backspace button to go one page back in every browser. For now I\'m using this code:
$(document).on(\"keydown\", function (e) { if
Just add the select tag to your selector:
select
$(document).on("keydown", function (e) { if (e.which === 8 && !$(e.target).is("input, textarea, select")) { e.preventDefault(); } });