N
N
Nicholas2015-11-20 07:55:07
JavaScript
Nicholas, 2015-11-20 07:55:07

How to remove all dom elements inside an element and their unlimited number of their children.?

How to remove all dom elements inside an element and their unlimited number of their children.?
There is an array of GUI dom
objects.List[argument.id] = document.createElement(argument.element);
GUI.List[argument.id].id = argument.id;
GUI.List[argument.id].objects = [];
Which has other dom objects as well with
GUI.List[argument.id].objects = [];
Is there a way to clear all objects

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri, 2015-11-20
@kapitan7830

domElem.innerHTML = '';

L
link_irk, 2015-11-20
@link_irk

$('.target').find('.child').remove()

A
andreyqin, 2015-11-20
@andreyqin

https://api.jquery.com/empty/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question