I have a table where I want to insert a new row with a different colspan then the original table. Here is part of my code:
var table = document.getElementById("eTable");
var rowIndex = document.getElementById(ID).rowIndex;
var row = table.insertRow(rowIndex + 1);
var cell = row.insertCell(0);
var cell1 = row.insertCell(1);
var cell2 = row.insertCell(2);
var cell3 = row.insertCell(3);
var cell4 = row.insertCell(4);
My original table has 5 columns, but I want to merge cell1,cell2, and cell3. How do I do that?