How to add a title to an option item in select box ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zangetsu963
    New Member
    • Feb 2008
    • 1

    How to add a title to an option item in select box ?

    I want to add a title to option items in a drop down select box. When i hover on each item, i want to see the tooltip.
    The prob is that if the option item value is too long, it is truncated in IE.

    Can anyone suggest possible solutions plz ?

    I don't want to use frames. I'm ready to settle for javascript functions and css customization if need be.

    Also i'm using this dtd in my html template:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Also,
    - adding title in option item won't work in IE
    - onmouseover, onhover.. also does not work in IE.

    I tried using SPAN, with an overflow hidden, it works only in plain html template.
    But in my case, i'm using the loose.dtd, so the <span> does not work.

    Please suggest possible solutions cause, i'm not finding any.

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    How about increasing the length of the select element (perhaps making the font mono-spaced to guarantee that all content can be seen)?

    Is it not possible to change the doctype?

    Comment

    Working...