Array.from(document.getElementsByTagName("input"))
.filter( input => { return input.type==="checkbox" } )
.map( checkbox => { checkbox.checked = true })
Check all checkboxes in a page JavaScript snippet
Published inenglish
Array.from(document.getElementsByTagName("input"))
.filter( input => { return input.type==="checkbox" } )
.map( checkbox => { checkbox.checked = true })
Be First to Comment