469,336 Members | 5,955 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

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
Feb 24 '08 #1
1 1792
acoder
16,027 Expert Mod 8TB
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?
Feb 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by chris | last post: by
2 posts views Thread by Craig Keightley | last post: by
3 posts views Thread by Rithish Saralaya | last post: by
6 posts views Thread by Chris Fink | last post: by
3 posts views Thread by Lit | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.