How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)?
You can't do this with a HTML select tag, but you can do it with JavaScript and HTML. There are variety of existing controls that do this - for instance, the "suggest" list attached to the SO "interesting/ignored tag" entry, or Gmail's lookup for email adresses.
There are many JavaScript+HTML controls that provide this capability--look for autocomplete controls for ideas.
See this link for the Autocomplete control...http://ajaxcontroltoolkit.codeplex.com/
Is it possible to use JS to open an HTML select to show its option list?
Unfortunately there's a simple answer to this question, and it's "No"
Programmatically choose item in select drop down
First get a handle on that select somehow:
var select = document.getElementsByTagName("SELECT")[0];
Then manipulate the selectedIndex property (I believe it's a zero-based index):
select.selectedIndex = 1;
Related Topics
How to Detect If JavaScript Is Disabled
How to Get the Body'S Content of an Iframe in JavaScript
Determine If an HTML Element'S Content Overflows
How to Pass Parameters Using Ui-Sref in Ui-Router to the Controller
Way to Ng-Repeat Defined Number of Times Instead of Repeating Over Array
Change Link Color of the Current Page With Css
How to Convert Characters to HTML Entities Using Plain JavaScript
How to Do a Jquery Callback After Form Submit
JavaScript Confirm Popup Yes, No Button Instead of Ok and Cancel
How to Pass Parameters on Onchange of HTML Select
Communication Between Tabs or Windows
Rendering HTML Inside Textarea
Is It Wrong to Place the ≪Script≫ Tag After the ≪/Body≫ Tag
How to Correctly Iterate Through Getelementsbyclassname
How to Save Canvas as an Image With Canvas.Todataurl()
Populate One Dropdown Based on Selection in Another