tabbable selector
Description: Selects elements which the user can focus via tabbing.
jQuery( ":tabbable" )
Some elements are natively tabbable, while others require explictly setting a positive tab index. In all cases, the element must be visible in order to be tabbable.
Elements of the following type are tabbale if they do not have a negative tab index and are not disabled: input
, select
, textarea
, button
, and object
. Anchors are focusable if they have an href
or positive tabindex
attribute. area
elements are focusable if they are inside a named map, have an href
attribute, and there is a visible image using the map. All other elements are tabbable based solely on their tabindex
attribute and visibility.
Note: Elements with a negative tab index are :focusable
, but not :tabbable
.
Example:
Select tabbable elements and highlight them with a red border.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
|