I want to get all innerText of a whole column of a very long html table (random length). I\'m using this code:
var tbEls = document.querySelectorAll(\'#tBodyID t
The easiest way I found was to convert the nodeList to an array first then use a map:
var nodes = document.querySelectorAll("h3 em"); var list = [].slice.call(nodes); var innertext = list.map(function(e) { return e.innerText; }).join("\n");