Bitrix Site Manager

oBXEditorUtils.BXRemoveAllChild

void
oBXEditorUtils.BXRemoveAllChild(
 object pNode
);

The oBXEditorUtils.BXRemoveAllChild method removes all child nodes of an element passed in pNode.

Parameters
Parameter Description
pNode The document DOM node whose child items are to be removed.

Example


<script>

var oTable = document.getElementById('tableId');

//Remove child nodes of the id='tableId' table
oBXEditorUtils.BXRemoveAllChild(oTable);

</script>