Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by Ehcnalb for How to use with dynamic IDs?

I suggest you : let templateInstance = document.getElementById("paragraph-template"); for(var i=1;i<4;i++){ let clone = document.importNode(templateInstance .content, true);...

View Article


How to use with dynamic IDs?

Given a HTML-template like this:<template id="paragraph-template"><p>Hi, I am a paragraph</p></template>I load and append this template via JS, like so:let templateInstance =...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>