var myMainBlock = document.getElementById("myMainBlock"); var template = document.querySelector("#template"); var clonedItem = template.cloneNode(true); clonedItem.removeAttribute("id"); myMainBlock.appendChild(clonedItem);
Last updated 3 years ago