JSPM

jquery.tabbable

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1015
  • Score
    100M100P100Q100219F
  • License MIT

Simple utility for selecting the next / previous 'tabbable' element. Includes and uses the ':tabbable' and ':focusable' selectors from jQuery UI Core.

Package Exports

  • jquery.tabbable

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery.tabbable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jQuery.tabbable

Simple utility for selecting the next / previous 'tabbable' element. Includes and uses the ':tabbable' and ':focusable' selectors from jQuery UI Core.

Demo

View the jsFiddle demo.

Methods

jQuery.tabbable adds the following methods.

// Focuses the next ':tabable' element.
jQuery.tabNext();

// Focuses the previous ':tabable' element.
jQuery.tabPrev();

// Focuses the previous ':focusable' element. 
// Elements which have a tabindex of '-1' are 'focusable', but not 'tabbable'.
jQuery.focusNext();

// Focuses the previous ':focusable' element.
// Elements which have a tabindex of '-1' are 'focusable', but not 'tabbable'.
jQuery.focusPrev();

Selectors

jQuery.tabbable adds following selectors (which come from jQuery UI Core):

// Select tabbable elements
$(':tabbable');

// Select focusable elements
$(':focusable');

Installation

  1. bower install jQuery.tabbable --save or npm install jquery.tabbable --save
  2. Include jquery.tabbable.min.js