jQuery: keyup for TAB-key?
My hunch is that when you press the tab key, your form’s input loses focus, before the keyup happens. Try changing the binding to the body, like this: $(‘body’).keyup(function(e) { console.log(‘keyup called’); var code = e.keyCode || e.which; if (code == ‘9’) { alert(‘Tab pressed’); } }); Then, if that works (it does for me) … Read more