If your <td> not empty, one popular trick is to insert unplanned space to:
<td id="td1"> </td>
Then you can use:
document.getElementById('td1').firstChild.data = 'New Value';
Otherwise, if you do not want to add a meaningless   , you can use the solution that Jonathan Finngland described in another answer .
Daniel Vassallo Jan 29 '10 at 17:04 2010-01-29 17:04
source share