Adding Optgroup in Drop-down form fields


#1

How can I add optgroups to the drop-down form field options?
I want to make my drop-down look like this(attached image), the options marked with the arrows are the optgroup labels.

I would appreciate any kind of help from the experts please.
Thanks.


#2

Yeah, would like to do that too…