Native tooltip is displayed for disabled element
by dwaddell
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/ui-lightness/jquery-ui.css">
<div>
<p>The native tooltip is displayed for a disabled element. Hover over the lock icon to see an example.</p><br>
</div>
<div>
<button id="First"></button>
<br><br>
</div>
JavaScript
$('#First').tooltip({
content: "Hello!",
items: '*'
}).button({
icons: {
primary: "ui-icon-locked"
},
text: false
}).click(function () { $(this).tooltip('close'); $(this).button({disabled : true}); });