Nesting optgroups in a dropdownlist/select
问题 I have created a customer c# DropDownList control that can render out it\'s contents are optgroups (Not from scratch, I edited some code found on the internet, although I do understand exactly what it\'s doing), and it works fine. However, I have now come across a situation where I need to have two levels of indentation in my dropdown, i.e. <select> <optgroup label=\"Level One\"> <option> A.1 </option> <optgroup label=\"Level Two\"> <option> A.B.1 </option> </optgroup> <option> A.2 </option>