Hi AMOL,
Thanks for your feedback. I understand that you want to the DropDownList auto drop down when get focus or mouse over.
Based on my test, I failed to do that. Here is the test I have done:
When we click the DropDownList control in the page, it will be drop down. Hence, I think we can simulate a click to implement your requirement. The following code is for this suppose. But it doesn?t work though simulate button click successfully. For this reason, I think it?s by design and cannot do that. In addition, I don't find a function for "select" element to expand.
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function focused()
{
document.getElementById('feedback').innerText = 'I am focused';
document.getElementById('Select1').click();
document.getElementById('Button1').click();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" onclick="alert('simulate button click OK!')" type="button" value="button" />
<select id="Select1" onfocus="focused()">
<option selected="selected">aaa</option>
<option>bbb</option>
<option>ccc</option>
</select>
<span id="feedback"></span>
</div>
</form>
</body>
</html>
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.