How to hide an optgroup element when it does not contain any option element that is not disabled using CSS
I want to hide an optgroup element when it doesn't have any option element which cannot be selected. In the example below the first optgroup element shall be shown and the second should be hidden. optgroup { display: none; }…