Answers for "checked a element is focused with its key pressed"

0

checked a element is focused with its key pressed

$(window).keyup(function (e) {
    var code = (e.keyCode ? e.keyCode : e.which);
    if (code == 9 && $('#detect:focus').length) {
        alert('I was tabbed!');
    }
});
Posted by: Guest on October-21-2020

Code answers related to "checked a element is focused with its key pressed"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language