Documentation

BXRemoveAllChild

void
oBXEditorUtils.BXRemoveAllChild(
 object pNode
);

The 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>
© «Bitrix24», 2001-2024
Up