B
Bill M.
Hello,
What's up with this?
I've got a <td id="container"> and want to set the text in this cell like
....
var container = document.getElementById('container');
container.data = "Data in cell";
but can only seem to do it like this ...
var label = document.createTextNode("Data in cell");
container.appendChild(label);
which seems to actually leave me with two text nodes.
Thanks,
Bill
What's up with this?
I've got a <td id="container"> and want to set the text in this cell like
....
var container = document.getElementById('container');
container.data = "Data in cell";
but can only seem to do it like this ...
var label = document.createTextNode("Data in cell");
container.appendChild(label);
which seems to actually leave me with two text nodes.
Thanks,
Bill