Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I tell which OPTION in a SELECT control I hover above?

Status
Not open for further replies.

inbaron

Programmer
Dec 9, 2002
22
US
I have this problem. I have a SELECT control with very long items in the options list. I do not want to have a very wide control and I would like to truncate the items so they can show in a narrower box. However, I still would like to enable the user to see the complete item. I would like to have the ability that when the user hovers (or right clicks) an entry in the list to know which item he is looking at so I can display the complete item (either in a <div> or an alert box).

How can I tell which item in the Select List the user is hovering above or right clicking? Is there a way to do it? The OPTION element does have any event handlers that I know about.

Thanks in advance

Shai
 
No facility exists to do this. You could either widen the select control or build your own widget in DHTML.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top