Mozilla states that \"for of loops will loop over NodeList objects correctly\". (source: https://developer.mozilla.org/en-US/docs/Web/API/NodeList) However, this doesn\'t wo
This is what I do, for a different approach
Array.prototype.forEach.call(document.querySelectorAll("input[type=checkbox]"),function(ele,idx) { ele.checked = true; }
good from IE9 and above