Skip to content

nk-components/dom-remove

Repository files navigation

dom-remove Build Status

Remove an Element from the DOM

Installation

With npm do:

$ npm install dom-remove --save

Install with component(1):

$ component install nk-components/dom-remove

Usage

var remove = require('dom-remove');

var el = document.querySelector('#elmt')
remove(el);

var els = Array.prototype.slice.call(document.querySelectorAll('div'));
remove(els);

License

MIT

About

Remove an Element from the DOM

Resources

License

Stars

Watchers

Forks

Packages

No packages published