I know there are lots of solutions for chained dropdown lists but i’m trying to create something a little bit different than usual.
Menu before user click:
<select>
<option>Choose Something</option>
</select>
Menu after user clicked:
<select>
<option>Loading options</option>
</select>
Menu after options loaded from server:
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
The problem is after menu filled, its size is small and other items don’t appear until second click.
Is there a solution with that ?
Here is a some workaround. Might help you.
HTML (empty
optionas place holders)JavaScript
Demo 1 or Demo 2 on jsfiddle.net.
Hope this works out for you.