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)?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

save the attached code as test.html and try it:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<script type="text/javascript">
function op()
var s = document.getElementById("theList")
<div onclick="op()">Open List</div>
<select id="theList">
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
<option value="4">d</option>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
b0lsc0ttIT ManagerCommented:

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.

ChumadAuthor Commented:
Partial because it's a "sly" workaround for what I really needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.