Skip to content

Instantly share code, notes, and snippets.

@danstarns
Created September 27, 2022 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danstarns/1ae6f6259427e0e7f6e123568b83a9d7 to your computer and use it in GitHub Desktop.
Save danstarns/1ae6f6259427e0e7f6e123568b83a9d7 to your computer and use it in GitHub Desktop.
cricket-club-js
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