I am using something like this to create dynamic table
for(var i=0;i<nrRows;i++){
row=document.createElement('tr');
for(var j=0;j<nrCols;j++){
cell=document.createElement('td');
cell.appendChild(document.createTextNode(i+' '+j))
row.appendChild(cell);
}
tbo.appendChild(row);
}
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?