I持って7シンプル選択ボックス:ALL選択ボックスは、デフォルトのオプションではなく選択した何かを持っている場合すべての選択ボックスにjqueryを使用してオプションが選択されているかどうかを確認する方法?
<select>
<option selected disabled>choose something</option>
<option>some text</option>
<option>some more text</option>
<option>and more and more</option>
</select>
<select>
<option selected disabled>choose something</option>
<option>some text</option>
<option>some more text</option>
<option>and more and more</option>
</select>
<select>
<option selected disabled>choose something</option>
<option>some text</option>
<option>some more text</option>
<option>and more and more</option>
</select>
<select>
<option selected disabled>choose something</option>
<option>some text</option>
<option>some more text</option>
<option>and more and more</option>
</select>
はどうすれば確認できますか?
どこオプション値はありますか? – yash
'select'入力の' value'を設定します.... value属性が指定されていない場合、 'text'は' value'として扱われます.. – Rayon
'document ' .getElemnetById( 'HTMLidAttribute') 'それは' Element.selected'のためのテストと同じくらい簡単です。 – PHPglue