Search code examples
htmlfirefoxcross-browsercompatibility

Firefox does not show tooltips on disabled input fields


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?


Solution

  • 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.