CLiown
CLiown

Reputation: 13843

jQuery Selector - Tabindex = -1

Is it possible to write a jquery selector for an element based on its tabindex?

E.g.

<div TabIndex='-1'>jQuery me up baby</div>

Upvotes: 3

Views: 7606

Answers (2)

Damb
Damb

Reputation: 14600

Sure, this should be possible:

$('div[TabIndex*="-1"]')

You can find more documentation about it here.

Upvotes: 3

JaredPar
JaredPar

Reputation: 754725

Sure. It's just another attribute

$('[TabIndex="-1"]').

Upvotes: 3

Related Questions