I'm very new to JavaScript and I wish I could set the value of a td tag using JavaScript.
I have code like this to do so:
window.onload = function() {
     document.getElementById("units").value = "122"
}
And I have a html file like this:
<table class="table" width="100%">
    <caption class="bold">TNEB UnitCalculator</caption>
    <tbody>
        <tr>
            <td>testing</td>
            <td id="units"></td>
        </tr>
    </tbody>
</table>
But that doesn't seems to be working!