Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Last active December 2, 2019 08:46
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 roberto-butti/ba9777d57320e772716c2121ea68dc1a to your computer and use it in GitHub Desktop.
Save roberto-butti/ba9777d57320e772716c2121ea68dc1a to your computer and use it in GitHub Desktop.
Changing Select values as "A", for each select in page that has "id" starts with "g_"
[].forEach.call(
document.querySelectorAll('select[id^="g_"]'),
function(select) {
select.value = 'A';
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment