Created
September 27, 2022 14:55
-
-
Save danstarns/1ae6f6259427e0e7f6e123568b83a9d7 to your computer and use it in GitHub Desktop.
cricket-club-js
This file contains hidden or 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
const nameInputs = document.querySelectorAll("input[type=text]"); | |
const firstName = nameInputs[0]; | |
const secondName = nameInputs[1]; | |
firstName.value = "Daniel"; | |
secondName.value = "Starns"; | |
const checkboxes = document.querySelectorAll("input[type=checkbox]"); | |
const sixPM = checkboxes[0]; | |
sixPM.checked = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment