If a select menu contains optgroup elements, jQuery Mobile will create a divider & group items based on the label attribute's text:
+
If a select menu contains optgroup elements, jQuery Mobile will create a divider and group items based on the optgroup label attribute's text. The default theme swatch for group dividers is "b" (blue in the default theme) but can be changed with the data-divider-theme attribute on the select menu:
Applies the theme button border-radius to the select button if set to true. This option is also exposed as a data attribute: data-corners="false"
$('select').selectmenu({ corners: false });
-
+
+
dividerThemestring
+
+
default: "b"
+
Sets the color scheme (swatch) for dividers in popup-based custom select menus when using the optgroup support. It accepts a single letter from a-z that maps to the swatches included in your theme. To set the value for all instances of this widget, bind this option to the mobileinit event: