Anyway to enable a ToolTip for each ListItem

A

Alessandro Zifiglio

hi Chris, cant be done, this is a limitation of the option element itself.
It does not support a title attribute. You will need to resort to javascript
again and use the onmouseover event of the select element and check the
event.RelatedTarget for non IE browsers and window.event.toElement for IE
only, to check on what item of the select element you moused over and take
action by setting the title of the select element based on what option item
you have moused on.
Its cake, depending on how knowledgable you are with javascript.
good luck,
Alessandro Zifiglio
 
A

Alessandro Zifiglio

Also, now that i think about it a bit longer, setting the title of the
select element might not be convenient and work the way you want it. You are
looking at creating a custom tooltip, eg. An absolutely positioned div
element, whose contents are the title that you want to set when the
onmouseover of the select element fires.
Regards,
Alessandro Zifiglio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top