Q:

How to pass value from Javascript to td?

My table like this :
<table>
    ...
        <tr>
            ...
            <td id="test"></td>
            ...
        </tr>
    ...
</table>

My jQuery like this :
$('#test').text() = 10; 

I try like that, but it does not display anything
How can I display it?

A:

To update content pass it as an argument to work text() method as a setter.
$('#test').text(10);

