当我点击optgroup中的选项时,也会选择其他optgroup中的所有选项:
version=11.1
在js:
<select id="ressource_regions_region_id" multiple>
<optgroup label="one-three">
<option>One</option>
<option>two</option>
<option>three</option>
</optgroup>
<optgroup label="four-six">
<option>four</option>
<option>five</option>
<option>six</option>
</optgroup>
<optgroup label="seven-nine">
<option>sevent</option>
<option>eight</option>
<option>nine</option>
</optgroup>
</select>
像这样: bug bootstrap-select
答案 0 :(得分:0)
尝试为选项添加值..
<optgroup label="one-three">
<option value="One">One</option>
<option value="two">two</option>
<option value="three">three</option>
</optgroup>