SyntaxFix
Write A Post
Hire A Developer
Questions
Another variation on the already proposed answers without jQuery.
Object.values(document.getElementById('mySelect').options).forEach(option => alert(option))