col[0].forEach(function (a,k) { col.forEach(function (ar,i) { td[i].textContent = ar[k]; }); var clone = document.importNode(t.content, true); tb[0].appendChild(clone); });