0
Solve problem
Hey I want add number of each row start from one I am trying using loop but not working https://code.sololearn.com/WRVNkOVHqvKW/?ref=app
2 ответов
+ 3
Nasser
Change
var newRow = table.insertRow(table.rows.length/4+1);
To
var newRow = table.insertRow(table.rows.length);
Do :
col = table.rows.length - 1 //why - 1 because 1 row already exist.
Add :
cell5.innerHTML = col;
+ 1
Thanx brother