Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オプションの空またはnull値のデフォルト値を設定する方法:
HTML:
<select name="master_id" id='master_id' > <option value=""> - - - </option>
また
<select name="master_id" id='master_id' > <option> - - - </option>
デモ
見つけた:
Jクエリ
$('#test option:not([value])').prop('selected', true)