重複の可能性:
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?