checked a element is focused with its key pressed

The solution for “checked a element is focused with its key pressed” can be found here. The following code will assist you in solving the problem.

$(window).keyup(function (e) {
var code = (e.keyCode ? e.keyCode : e.which);
if (code == 9 && $(‘#detect:focus’).length) {
alert(‘I was tabbed!’);
}
});

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in