Link to home
Start Free TrialLog in
Avatar of Chumad
Chumad

asked on

Open SELECT dropdown list automatically

Is it possible to open a SELECT element automatically using JavaScript? (i.e., instead of the user clicking the down arrow, is there a way to get JavaScript to click it so that the list is just open)?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Chumad,

Javascript can't "click" the select list to have it show.  The clever script above will give that effect by changing the select to a multi-select list.  Hopefully that will work and all credit to Hielo for it.  However if you want to keep the select list not multiselect then there is no way to do it.

Let me know if you have any questions or need more information.

b0lsc0tt
Avatar of Chumad
Chumad

ASKER

Partial because it's a "sly" workaround for what I really needed.