Skip to content

Check all checkboxes in a page JavaScript snippet

Array.from(document.getElementsByTagName("input"))
.filter( input => { return input.type==="checkbox" } )
.map( checkbox => { checkbox.checked = true })
Published inenglish

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *