Answers for "JS append content into a DOM element"

0

JS append content into a DOM element

const list = document.getElementById("players"); // select a <ul />

list.insertAdjacentHTML("beforeend", "<li>Luke</li>");
Posted by: Guest on September-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language