Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var table = document.querySelector("tbody")
- var str = ""
- for (var i = 0, row; row = table.rows[i]; i++) {
- for (var j = 0, cell; cell = row.cells[j]; j++) {
- str = str + cell.innerText + ', '
- }
- str = str + '\n'
- }
- console.log(str)
Add Comment
Please, Sign In to add comment