Last active
May 28, 2018 14:07
-
-
Save kyuwoo-choi/82534ff0d937a0a5cc9b8fa9b9319b60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template id="productrow"> | |
<tr> | |
<td class="record"></td> | |
<td></td> | |
</tr> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const template = document.querySelector('#productrow'); | |
const clone = document.importNode(template.content, true); | |
clone.querySelector('.record').innerText = '####'; | |
tableElement.appendChild(clone); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment