I’m getting a selectbox with an undefined amount of options.
Example
My selectbox contains 50 options with different values. What I do is to just show option 1-10 and 25-30. The others are detached. By clicking option 30 the detached options are attached.
My problem is that the selectbox closes like it always does after a selection. Is there a way to suppress this behaviour?
It would be really great if one clicked option 30 and the detached options would be displayed just under option 30 without the selectbox closing.
You could try setting the select box to be a multiple select box. Then when the 30th item is selected showing the additional items.
If you are really attached to using a regular select box, then you may be able to produce that action by having a “more options…”
<option>that , when selected uses javascript to load and reopen the dropdownIf you provide some sample code I could work up an example, maybe