-
Notifications
You must be signed in to change notification settings - Fork 1
findByName
Toke Voltelen edited this page Dec 4, 2016
·
2 revisions
Find DOM elements with the given name
-
names
(String|Array<String>) - Value of name attribute to find the elements by - returns (Array<HTMLElement>) - List of found DOM elements
import findByName from 'vanillajs-browser-helpers/findByName';
// Basic
findByName('some-name');
// Multiple names
findByName('some-name, another');
findByName(['some-name', 'another']);