views:

326

answers:

3

I would like to create a ComboBox like you can see in the following image

Combobox

The Combo/Menu/List should allow some items to be bold (Main Categories), and to have "sub-categories" under each main category. The bold items should not be clickeable or selectable (I guess these items should have value="") ?

Thanks

+3  A: 

You want to look into optgroup tag

Marek Karbarz
Yes, that's it! Thanks!
Enrique
A: 

Well, that isn't a combobox (there is no free text component), so all you need to do is include some optgroup elements.

David Dorward
+1  A: 

For the formatting, you might want to try jListbox: jquery plugin:

jListbox

o.k.w