Tabable
This is a simple module that will add tab-index attributes to your elements.
Install
$ npm install tabable
Usage
Given an element, tabable find all the inputs (or whatever you specify via the optional filter argument) within it an give them a tab-index. Eg:
var tabable = ; // make all the inputs have a reasonable tab-index;
Only want textareas to be tabable?
var tabable = ; // only set tab-index on the textarea elements;