showing results for - "loop through table print in javascript"
Noah
16 Mar 2017
1var table = document.getElementById("myTable");
2for (let i in table.rows) {
3   let row = table.rows[i]
4   //iterate through rows
5   //rows would be accessed using the "row" variable assigned in the for loop
6   for (let j in row.cells) {
7     let col = row.cells[j]
8     //iterate through columns
9     //columns would be accessed using the "col" variable assigned in the for loop
10   }  
11}
Frida
19 Jan 2017
1display table using loop in javascript
2