Quantcast
Channel: How to use with dynamic IDs? - Stack Overflow
Browsing all 2 articles
Browse latest 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 all 2 articles
Browse latest View live


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