0.1.0 • Published 10 years ago

remove-elements v0.1.0

Weekly downloads
5
License
BSD
Repository
github
Last release
10 years ago

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