Skip to content

Instantly share code, notes, and snippets.

@rileyrichter
Last active October 23, 2023 23:38
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 rileyrichter/de944499abe6dc5449d262d201776a1a to your computer and use it in GitHub Desktop.
Save rileyrichter/de944499abe6dc5449d262d201776a1a to your computer and use it in GitHub Desktop.
Multi-step approach
//Do this
const checkBoxWrapper = document.querySelector(".sf_group-list");
const regionCheckboxes = checkBoxWrapper.querySelectorAll('input[type="checkbox"]:checked');
// or this
const regionCheckboxes = document.querySelectorAll('.sf_group-list input[type="checkbox"]:checked');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment