index.html
@@ -529,7 +529,7 @@ <pre> <code class="js" data-trim data-line-numbers> // findet das erste Element const element = document.querySelector("#id"); const parent = document.querySelector("#id"); // findet alle Elemente const elements = document.querySelectorAll("#id"); @@ -541,6 +541,9 @@ // Click-Event }); // Element anhängen parent.appendChild(newElement); newElement.remove(); </code> </pre>