Click to See Complete Forum and Search --> : how to add new row with one column at run time in table.


mamtesh
12-22-2005, 06:09 AM
thanks Deep Dhyani
I am really, thankfull to you!!!!!

Now i want to add new row with one column at run time in table
How it possible


Mamtesh Kumar

deep.dhyani
12-22-2005, 07:01 AM
<SCRIPT>
i=1;
function fnAppend(){
i++;
var oNewNode = document.createElement("TD");
oList.appendChild(oNewNode);
oNewNode.innerText+=i;
}
</SCRIPT>
<BODY>
<table border=1 width="200">
<tr ID = "oList">
<td>1</td>
</tr>
</table>

<INPUT
TYPE = "button"
VALUE = "Append Child"
onclick = "fnAppend()">
</BODY>