Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

How to focus the drop down list item on focus when mouse move.
Posted
Comments
Rajesh Anuhya 21-Mar-12 5:52am    
Do you want to expend the dropdown list on mouse move event?
--RA
chandrashekhar racharla 21-Mar-12 6:40am    
No,Just focus the selected item when mouse moves to that place

1 solution

You can add the attribute onmouseover to the dropdown list control like this

C#
<yourdropdown>.Attributes.Add("onmouseover","BringFocus(this);");</yourdropdown>


And in the Javascript

JavaScript
function BringFocus(control) {
    control.focus();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900