I want to change table <td>
data by using innerHTML
property. But after applying innerHTML
property those values set in <td>
are not accessible in Javascript code.
So is there any alternative to innerHTML
property so that value can be set in <td>
and it can also be accessed in Javascript Code.
Javascript code
<script>
var row=0,col=0,i=1;//can be used in loop
document.getElementById("tableID").rows[row].cells[col].innerHTML=i;
</script>