Last active
December 12, 2021 04:59
-
-
Save rahulmalhotra/9a3a0c9a6e8527344fc09e352d6f7576 to your computer and use it in GitHub Desktop.
This gist is used to enable first checkbox named "enable" on current page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inputs = document.getElementsByTagName('input'); | |
for(let input of inputs) { | |
if(input.type === 'checkbox' && input.name === 'enable') { | |
input.disabled = false; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment