Hello to all, This is my first post here. After a few weeks reading and learning here I have a specific question:
$(document).keypress(function(e) {
if (e.which == 13) { alert('Key press') };
});
This runs perfectly; an alert box is shown.
When I try with ESC (code 27) or any other key code, it doesn't run. Any suggestions?