selectedIndex
位置0の要素テキストではなく、何も選択されていない場合に-1を返すことは可能ですか.
また、selectedIndex
何も選択されていない場合でも 0 を返します。
<select id="qwe" name="qwe">
<option>11</option>
<option>22</option>
</select>
document.someForm.qwe.value
//returns 11
$('#qwe option:selected').val()
//returns 11
<select id="qwe" name="qwe">
<option selected="false">11</option>
<option>22</option>
</select>
$('#qwe option:selected').val()
//returns 11
<select id="qwe" name="qwe">
<option selected="false">11</option>
<option selected="false">22</option>
</select>
$('#qwe option:selected').val()
//returns 22