Skip to content

Instantly share code, notes, and snippets.

@tusbar
Created August 10, 2016 13:56
Show Gist options
  • Save tusbar/11a30cdfb1b6546280fa2271b046c584 to your computer and use it in GitHub Desktop.
Save tusbar/11a30cdfb1b6546280fa2271b046c584 to your computer and use it in GitHub Desktop.
Never check those radio buttons ever again
document.querySelectorAll('input[type="radio"][value="10"]').forEach(r => { r.checked = true });
document.querySelector('form').submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment