Menu
Hi,
Has anybody successfully added a COL to an HTML table using the DOM and appendChild? I am currently setting the width of a column by setting the width of each cell. I want to set the width on just the column. Although the code doesn’t error it doesn’t have any effect. However, if I debug and get the innerHTML and paste it into a new HTML document the effect of my width change is apparent.
The snippet of code I’m using is:
var oCol = document.createElement(“COL”);
oCol.width = 100;
oTableBody1.appendChild(oCol);
Any ideas?
Many thanks,
Marek Walford