views:

772

answers:

2

Firefox doesn't display tooltips on disabled fields.

The following displays tooltip in IE/Chrome/Safari except Firefox:

<input type="text" disabled="disabled" title="tooltip text."/>

Why doesn't Firefox display tooltip on disabled fields? Is there a work around this?

+5  A: 

Seems to be a (very old, and very abandoned) bug. See Mozilla Bugs #274626 #436770

I guess this could also be explained as intended behaviour.

One horrible Workaround that comes to mind is to overlap the button with an invisible div with a title attribute using z-index; another to somehow re-activate the button 'onmouseover' but to cleverly intercept and trash any click event on that button.

Pekka
Good to know that its a known issue and it was reported. Sucks that nobody is working on it though. Thanks for the info.
dev.e.loper
I agree. I'm not sure it's a bug but an interpretation of the standard where it says disabled elements don't receive focus. I can see its usefulness, though.
Rob
A: 

You could use javascript. Use the mouseover event.

(A lot of libraries like JQuery and Mootools have tooltip plugins available. Using these you can even style the tooltips).

Jimmy Shelter
Yeah that immediately came to mind. However, if there is a way to do it without resorting to javascript, that would be great. Thanks.
dev.e.loper