optgroup with all option

纵然是瞬间 提交于 2021-02-08 10:33:41

问题


my select option group is like

<select multiple class="form-control form-white" data-placeholder="Select Courses">
 <option value="all">All</option>
  <optgroup label="Play School">
    <option value="1">All</option>
    <option value="2">Sec A</option>
    <option value="3">Sec B</option>
 </optgroup>
<optgroup label="Nursery">
    <option value="1">All</option>
    <option value="2">Sec A</option>
    <option value="3">Sec C</option>
</optgroup>

<optgroup label="LKG">
    <option value="1">All</option>
    <option value="2">Sec B</option>

when i click the main option All remain class option group should be empty, if i click the nursery option-group 'All',the remain section like(Sec A,Sec B) will be disable.is it possible through jquery?

来源:https://stackoverflow.com/questions/41241873/optgroup-with-all-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!