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;// Focuses the previous ':tabable' element.jQuery;// Focuses the previous ':focusable' element.// Elements which have a tabindex of '-1' are 'focusable', but not 'tabbable'.jQuery;// Focuses the previous ':focusable' element.// Elements which have a tabindex of '-1' are 'focusable', but not 'tabbable'.jQuery;
Selectors
jQuery.tabbable adds following selectors (which come from jQuery UI Core):
// Select tabbable elements;// Select focusable elements;
Installation
bower install jQuery.tabbable --save
ornpm install jquery.tabbable --save
- Include
jquery.tabbable.min.js