Get the option value in select in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1085801/how-to-get-the-selected-value-of-dropdownlist-using-javascript">How to get the selected value of dropdownlist using JavaScript?</a><br>
  <a href="http://stackoverflow.com/questions/11828125/how-to-get-the-value-of-a-selected-text-in-javascript">How to get the value of a selected text in javascript</a>  </p>
</blockquote>



<pre><code>&lt;select id="short_code"&gt;
&lt;option value="12"&gt;First&lt;/option&gt;
&lt;option value="11"&gt;Second&lt;/option&gt;
&lt;option value="10"&gt;Third&lt;/option&gt;
&lt;option value="9"&gt;Fourth&lt;/option&gt;    
&lt;/select&gt;
</code></pre>

<p>I need to do this:</p>

<pre><code>if(document.getElementById("short_code").options.item(document.getElementById("short_code").selectedIndex).text)== "First")

//get the value of the option Fist , how to get the value?
</code></pre>
