I have a dropdown list populated with some items. When the user selects one of them, I would like the dropdown list to stay open and be repopulated with new items. The user then selects one of these and finally the dropdown closes.
Can it be done in JavaScript? And if so, how?
For science! I've created an alternative answer to test this. You can check this fiddle that contains this HTML:
And the following Javascript:
If you open the dropdown and keep it opened until the timer expires, you will see the following behavior:
Not without replacing the native control with a custom one.