New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tabable

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabable

A simple module to set tab indices on elements.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Tabable

This is a simple module that will add tab-index attributes to your elements. Build Status

Install

$ npm install tabable

Usage

tabable( element[, filter ] )

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 = require( 'tabable' );

// make all the inputs have a reasonable tab-index
tabable( document.getElementById( 'foo' ) );

Only want textareas to be tabable?

var tabable = require( 'tabable' );

// only set tab-index on the textarea elements
tabable( document.getElementById( 'foo' ), 'textarea' );
Have an issue? report it in the issues tab.

Keywords

tab index

FAQs

Package last updated on 31 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts