如何设置选项的空值或空值的默认值:
HTML:
<select name="master_id" id='master_id' >
<option value=""> - - - </option>
或
<select name="master_id" id='master_id' >
<option> - - - </option>
答案 0 :(得分:0)
<select name="master_id" id='master_id' >
<option> - - - </option>
JQUERY
$('#test option:not([value])').prop('selected', true)