Last active
December 2, 2019 08:46
-
-
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_"
This file contains 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
[].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