.focus () to a tabIndex

0

I can not find the way to do with jquery a .focus () to an element with the tabindex property.

I've seen that in old versions of jquery you can not, but is this still the case today?

How can it be that a library focused on the DOM does not have access to this HTML property?

    
asked by PictorGames 16.05.2017 в 19:53
source

1 answer

1

Try this:

$('[tabindex=1]').on('focus', function() { //TODO });
    
answered by 16.05.2017 / 20:01
source