Dynamic table creation using javascript
<p>I am using something like this to create dynamic table</p>

<pre><code>    for(var i=0;i&lt;nrRows;i++){
        row=document.createElement('tr');
        for(var j=0;j&lt;nrCols;j++){
        cell=document.createElement('td');
        cell.appendChild(document.createTextNode(i+' '+j))
        row.appendChild(cell);
        }
        tbo.appendChild(row);
    }
</code></pre>

<p>Now I want the first row to be filled with column headers. And I want to give ID to each textbox in each row. How do I do so? </p>
