Instead, use the CSS select optgroup .
Remember that not every browser will abide by optgroup rules (e.g. Webkit). With that in mind, you might like to try the jQuery plugin, which allows you to do a full, cross-look at the styles of form elements; e.g. Uniform .
source share