How to get a value from a select option, using vanilla JavaScript

This is a live demo of recipe #15 from Chapter 4: Working with the DOM of A Better Way To Learn JavaScript, Book 3: Useful Snippets.

In this exercise, we're demonstrating how to get a value from a select option, using vanilla JavaScript.

To inspect the code, open the DOM using devtools, and locate the defered script tag in the head of this document.

    Back to top

    New to JavaScript? Get the book series!