<optgroup label="Breeding" class="parent-option">
<option class="child-option" value="Foal Out" disabled style="font-weight: bold; color: #555555 " selected="false">Foal Out</option>
<option value="Breeding, Foal Out, General"> General</option>
<option value="Breeding, Foal Out, Report"> Report</option>
<option class="child-option" value="Gestation" disabled style="font-weight: bold; color: #555555 " selected="false">Gestation</option>
<option value="Breeding, Gestation,l General"> General</option>
<option value="Breeding, Gestation, Report"> Report</option>
<option class="child-option" value="Mare" disabled style="font-weight: bold; color: #555555 " selected="false">Mare</option>
<option value="Breeding, Mare, AI Cooled Semen"> AI Cooled Semen</option>
<option value="Breeding, Mare, AI Frozen Semen"> AI Frozen Semen</option>
</optgroup>
如何从下拉列表中选择任何选项时,如何获取最近的子选项类和最近的父选项类值的值。如何从jquery中的下拉列表中获取值
'$(选择器).VAL()的;' – Satpal
[如要选择一个下拉的值的可能重复(
你是什么意思最近?如果我在下拉菜单中选择“报告”,那么它最接近什么?它会成为'怀孕'还是'出发'? –