select 的 optgroup
<select>
     <optgroup label="---parent1---">
         <option>∟son1</option>
         <option>∟son2</option>
     </optgroup>
     <optgroup label="---parent2---">
         <option>∟son1</option>
         <option>∟son2</option>
     </optgroup>
</select>
我已经做到了分组。
但是有个要求就是作为父类的 ---parent1---  ---parent2--- 也要能被选中的。
这个是怎么实现的??
------解决方案--------------------
这个就没办法了,你只能写div模仿select了
------解决方案--------------------没办法
------解决方案--------------------控件是死的  只能看到分组效果,没办法选中