Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: RE: how to add a row & data into that row at runtime using JavaScript?


Message #1 by "Priya" <priya_sivaraman2001@y...> on Sat, 1 Feb 2003 04:50:41
hai,
try out in this way :

var newRow;
var newCell;
newRow=parent.opener.document.getElementById(tableid).insertRow(rowpos);
for (var i = 0; i < 3; i++) {        //no. of cells u want to add
newCell = newRow.insertCell(i); 
newCell.innerHTML="XX"; 
}

  Return to Index