Skip to content

Defter

  • Home

javascript

consolehow tojavascript

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;
}

Comment 3 October 20193 October 2019 Geloda

Posts navigation

Newer posts →
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Defter
    • Already have a WordPress.com account? Log in now.
    • Defter
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started