#108956

Hi,

When you create a template element js, you should put the children inside the content.
Ex. tmpTemplate.content.appendChild(tmpDiv);

Here is your demo now working: https://codepen.io/dkeamcaksoem/pen/abPMXqb

Best Regards,
Svetoslav Borislavov

Smart UI Team
https://www.htmlelements.com/