[javascript] Get selected value in dropdown list using JavaScript

Make a drop-down menu with several options (As many as you want!)

<select>
  <option value="giveItAName">Give it a name
  <option value="bananaShark">Ridiculous animal
  <ooption value="Unknown">Give more options!
</select>

I made a bit hilarious. Here's the code snippet:

_x000D_
_x000D_
<select>_x000D_
  <option value="RidiculousObject">Banana Shark_x000D_
  <option value="SuperDuperCoding">select tag and option tag!_x000D_
  <option value="Unknown">Add more tags to add more options!_x000D_
</select>_x000D_
<h1>Only 1 option (Useless)</h1>_x000D_
<select>_x000D_
  <option value="Single">Single Option_x000D_
</select>  
_x000D_
_x000D_
_x000D_

yay the snippet worked