1.0.0 • Published 8 years ago

class-name-starting-with v1.0.0

Weekly downloads
38
License
MIT
Repository
github
Last release
8 years ago

class-name-starting-with

Finds all element starting with string. Queries the DOM for 'class*="string"'.

Usage

var classNameStartingWith = require('class-name-starting-with');
classNameStartingWith('prefix__', el);
// => [HTMLElement]

API

classNameStartingWith(string, rootElement)

Returns an array with the elements with class name matching string.

string

Type: string

rootElement

Type: undefined, HTMLElement