I have a loop that creates 20 check-boxes in the same page (it creates different forms). I want via chrome developer tools to
Try this :)
(function () {
var checkboxes = document.querySelectorAll('input[type=checkbox]');
//convert nodelist to array
checkboxes = Array.prototype.slice.call(checkboxes);
checkboxes.forEach(function (checkbox) {
console.log(checkbox);
checkbox.setAttribute('checked', true);
});
})()
http://jsfiddle.net/YxUHw/