Sascha Schulz
2023-02-14 d1bd2c6b8dd2432d10e192f4b644c686cf26fcc3
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>