How to give ID for TableRow using insertRow()?
<pre><code> var table = document.getElementById("table1");
    var tr = table.insertRow();
    var td = tr.insertCell();
    td.innerHTML= document.getElementById('txt1').value;
</code></pre>

<p>i am using code like this. how to give Id for tr(TableRow). help me.</p>
