I’m using the BS4 Select control in my app and while it works fine, it would be nice to differentiate between item 0 (telling users to “Choose Callculation Type”) and items 1-7, which are the different options.
Unfortunately adding “!” to make the first item a heading doesn’t work for this control (in Chrome or as a web app on an iPhone). I’ve added a “*” in front of item 0 so that it’s not selectable, but I’d also like to make it’s text bold with a darker background in the dropdown list.
That really come close to working in Chrome (just one odd behavior that can probably be sorted out). Unfortunately it’s ignored when run as a webapp on the iPhone.
Thanks Gary. I did do that, my screenshot is with the “flatly” theme. The issue is that in the resulting Select list of items for any of the themes all of the items have the same font and background color, so there is no way to distiguish which one is the “title” item.
Pro_Certs code fixes this for Chrome (although I had to use “lightgrey” instead of “grey”). Unfortunately his code has no effect for iOS.