Theory and Practice
About Archives Categories Tags Authors 中文 ไทย

[Dart] DOM Element Remove All Children

Updated: February 20, 2015
Edit on Github

Question:

Assume that elm is a dom element, how to remove all children elements (nodes) of elm in Dart programming language?

Answer:

elm.children.clear();

References:

[1]Removing all child elements from an element
[2]JavaScript Remove All Children of a DOM Element

Author: Siong-Ui Te
∈ Category: Dart
∑ Tags: Dart , DOM
Powered by Github Pages, Pelican, pyScss.