npm.io
0.1.0 • Published 12 years ago

remove-elements

Licence
BSD
Version
0.1.0
Deps
1
Vulns
0
Weekly
0
Stars
3

remove-elements

Removes elements from the DOM by CSS selector. Very simple but helps reduce a bit of boilerplate and might spare somebody some Googling if they forget.

Uses https://github.com/hughsk/remove-element by @hughsk

testling badge

Usage

remove-elements

remove(cssSelectorString, [scope])

Removes all matching elements from the DOM, if they are attached. If scope is defined it uses scope.querySelectorAll otherwise document.querySelectorAll.

License

BSD