Skip to content

Instantly share code, notes, and snippets.

@kyuwoo-choi
Last active May 28, 2018 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyuwoo-choi/82534ff0d937a0a5cc9b8fa9b9319b60 to your computer and use it in GitHub Desktop.
Save kyuwoo-choi/82534ff0d937a0a5cc9b8fa9b9319b60 to your computer and use it in GitHub Desktop.
<template id="productrow">
<tr>
<td class="record"></td>
<td></td>
</tr>
</template>
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