dom-move
v1.0.1
Published
Move children from one DOM node to another.
Downloads
4
Readme
dom-move
Moves child elements from a DOM node to another dom node.
usage
move(source, destination);
All the child nodes of source
will be removed, and appended in destination
. The destination
node is returned so you can do:
var content = move(source, document.createElement('div'));
If the second parameter is ommited, a document fragment is created:
var fragment = move(source);