I've created cells for a dynamic table in html page using "document.createElement('td')" method & now wish to set width of each individual cell with some different value. Tried "cell.width = width" but it didn't work.
how can I achieve it?
Use style.width:
var cell = document.createElement('td');
parent.appendChild(cell);
cell.style.width = '200px';
Here is an example.
cell.style.width = width? Welcome to SO!