According to the TwitterBootstrap docs, and I quote:
To add a tooltip to a disabled or .disabled element, put the element inside of a
<div>
and apply the tooltip to that<div>
instead.
Which I have done so:
function AddToolTip(control) {
d = jQuery(control).wrap("<div class='" + control.attr('name') + "'
title='" + control.attr("data-title") + "' />");
d.tooltip();
}
And this function gets called like this:
$('#Area').attr('disabled', true).after(AddToolTip($('#Area')));
But the tooltip is not showing up, and it should show up when hovered
or clicked
.
I have a textbox
which I enable/disable depending on another control. The same tooltip is shown whether the textbox
is enabled or disabled.
What is it that I'm missing here?