Functiondojox.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.

Usage

function (node, /*Node|Array*/ newChildren) (view source)
parametertypedescription
node The node to modify the children on
newChildrenNode|ArrayThe children to add to the node. It can either be a single Node or an array of Nodes.