dojox.data.dom.replaceChildren
dojo.require("dojox.data.dom");
defined in dojox/data/dom.js
Removes all children of node and appends newChild. All the existing children will be destroyed.
parameter | type | description |
---|---|---|
node | The node to modify the children on | |
newChildren | Node|Array | The children to add to the node. It can either be a single Node or an array of Nodes. |