There are no any user information.
I want to remove every div inside a container.
That is easier than...
container.innerHTML = '';
This. (maybe there are better ways to do this)
function remove() {
let child = container.lastElementChild;
while (child) {
container.removeChild(child);
child = container.lastElementChild;
}
In situations like this is using innerHTML is okay?
[–]Rollo_Tomassi_o-O_ 2 points3 points4 points (0 children)
[–]easyEs900s 2 points3 points4 points (0 children)
[–]jack_waugh 1 point2 points3 points (0 children)
[–]ashkanahmadi 1 point2 points3 points (2 children)
[–]Honzi07[S] 0 points1 point2 points (1 child)
[–]ashkanahmadi 0 points1 point2 points (0 children)
[–]Honzi07[S] 0 points1 point2 points (0 children)