Render tooltip on disabled HTML Button.

Posted by giulio on Stack Overflow See other posts from Stack Overflow or by giulio
Published on 2010-01-28T00:58:35Z Indexed on 2010/03/27 12:03 UTC
Read the original article Hit count: 408

Filed under:
|
|
|

I have a HTML button. I have tried to render a tooltip on it based on the "title" attribute of the button and it doesn't render. Mainly because it's disabled.

I then tried wrapping the button in a span and setting the "title" attribute of the span.

Hovering over the button that is wrapped in the span still has no effect. The tooltip will render on any other part of the span that is not part of the button tag. Like if i put some text in the span as well as the button, hovering over the text produces the tooltip, but if you hover over the button it will not render.

So: how can I display a tooltip for a disabled button?

© Stack Overflow or respective owner

Related posts about tooltip

Related posts about disabled