I'm making an application and I had a question:
How can I remove an element from a page with javascript without using innerHTML = ''
?
For example, I want to remove a div (like the example below) and all its contents:
<div id="conteudo">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</div>
How could I do this with pure Javascript?