Bootstrap optgroup selection
11,562
This has little to do with Bootstrap. optgroup
s in HTML are not designed to selected. My suggestion would be to drop them all together and just make them normal option
s with a class and style them differently. However keep in mind, that many browsers are limited to how you can style options
, so make sure you test this in multiple browsers.
Author by
Antonis
Updated on June 26, 2022Comments
-
Antonis almost 2 years
I am using bootstrap select plugin with bootstrap 3.0.2, which fulfils most of my requirements.
The only additional functionality I want is to be able to select anoptgroup
by clicking it.For example I would like to select Picnic (picture below) just like any other option,
Bootsrap select page -
Khrys over 8 yearsThis is not practical. Thinking about have to select 500 items from 2000, for example.
-
RoToRa over 8 years@Khrys I'm not quite sure what that has to do with the original question, but I'd suggest using checkboxes.
-
Khrys over 8 yearsIt has everything to do with the topic. The Bootstrap Select has a workaround for this: github.com/silviomoreto/bootstrap-select/issues/… The owner are studing to implement this.