Get value of <select> the modern way?
<p>I was <a href="http://stackoverflow.com/questions/1085801/how-to-get-the-selected-value-of-dropdownlist-using-javascript">under the impression</a> that in order to get the value from <code>&lt;select&gt;</code> you essentially had to do this:</p>

<pre><code>var sel = document.getElementById("my-select");
var val = sel.options[sel.selectedIndex].value;
</code></pre>

<p>But I <a href="http://jsfiddle.net/mnbayazit/3WYGc/">ran into some code today</a> that simply does <code>document.getElementById('my-select').value</code>, which seems to work perfectly fine in Chrome and Firefox.</p>

<p>Has this changed recently, or has it always been this way? How far back is this supported?</p>
