YouTip LogoYouTip

Api Tabbable Selector

# jQuery UI API - :tabbable Selector ## Category (#) | (#) ## Usage **Description:** Selects elements that can be focused by the user using the Tab key. jQuery( ":tabbable" ) Some elements are natively tabbable, while others require an explicit positive tabindex. In both cases, to be tabbable, the element must be visible. The following types of elements are tabbable if they do not have a negative tabindex and are not disabled: `input`, `select`, `textarea`, `button`, and `object`. Anchors are tabbable if they have an `href` or a positive `tabindex` attribute. `area` elements are tabbable if they are in a named map, have an `href` attribute, and have a visible image that uses the map. All other elements are tabbable based entirely on the `tabindex` attribute and visibility. Note: Elements with a negative tabindex are `:focusable`, not `:tabbable`. ## Example Select elements that can be focused by the Tab key and highlight them with a red border. :tabbable Selector Example input { border: 1px solid #000; } div { padding: 5px; }
$( ":tabbable" ).css( "border-color", "red" ); (#)
← Api Css FrameworkApi Focusable Selector β†’