hi all
I am new in javascript. I am tring to create table dynamically in my .aspx page. After some googling I reached this code.
Code:
<script language ="javascript">
function fncCreateTable()
{
var ph = document.getElementById('PlaceHolder1');
var tb = document.createElement('table');
var row, col;
var i,j;
for (i = 0; i < 7; i++)
{
row=document.createElement('tr');
for (j = 0; j < 7; j++)
{
col = document.createElement('td');
row.appendChild(col);
}
tb.appendChild(row);
}
tb.appendChild(tbo);
ph.appendChild(tb);
}
</script>
According to me the table is creating but the place holder is not getting it.
any idea, suggestions will be appreciable
Thank you