I need to get rid of labels in optgroups.
From this: https://i.sstatic.net/Gn5e5.png
Into this: https://i.sstatic.net/ZvRM7.png
But I need to do this with opgroups. I don`t want to delete them.
<select>
<optgroup>
<option>1</option>
</optgroup>
<optgroup>
<option>2</option>
</optgroup>
<optgroup>
<option>3</option>
</optgroup>
<optgroup>
<option>4</option>
</optgroup>
</select>
Jsfiddle: http://jsfiddle.net/upXn8/
<optgroup>
without rendering it. The label and indentation of child options is the only benefit I'm aware of. – Stiffler<option>
elements themselves. Here's an example: jsfiddle.net/upXn8/8 – Stiffler<option>
you have very limited functionality. For example, you can`t do this Fiddle – Matt