可能重複:
How to get the selected value of dropdownlist using JavaScript?
How to get the value of a selected text in javascript獲得期權價值的選擇在JavaScript
<select id="short_code">
<option value="12">First</option>
<option value="11">Second</option>
<option value="10">Third</option>
<option value="9">Fourth</option>
</select>
我需要這樣做:
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?
你[只是問這個](http://stackoverflow.com/questions/11828125/how-to-get-the-value-of-a-selected-text-in-javascript)。如果答案不起作用,則需要澄清問題而不是重新發布。 – 2012-08-06 12:45:32
@am不是我..可憐的男孩 – alkhader 2012-08-06 13:05:15