I\'m trying to create a table from tabular data in javascript, but when I try inserting rows into a table element, it inserts in the opposite
You can do this,
var table = document.getElementById("yourTable"); var row = table.insertRow(-1); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); var cell3 = row.insertCell(2); var cell4 = row.insertCell(3);