Check all checkboxes in the page with Javascript

You can use browser console to select all checkboxes in once in the page.

var allInputs = document.getElementsByTagName("input");
for (var i = 0, max = allInputs.length; i < max; i++){
  if (allInputs[i].type === 'checkbox')
  allInputs[i].checked = true;
}

Start the Discussion!Leave a Reply