JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<div id="testarea">
<label>Test<input id="test" title="test" disabled></label>
<label>Test2<input id="test2" title="test2"></label>
<label>Test3<input id="test3" title="test3" disabled></label>
<label>Test4<input id="test4" title="test4"></label>
<label>Test5<input id="test5" title="test5" disabled></label>
</div>
Note the mouseover tooltip doesn't go away on disabled inputs
CSS
label {
display: block;
padding: 10px;
}
:focus {
outline: 1px solid red;
}
JavaScript
$("body").tooltip({
position: {
my: "left top",
at: "right top",
offset: "0px 0px"
}
});
$("input[title]").bind("mouseover mouseout mouseenter mouseleave", function( event ) {
console.log("Caught on element", event.type, this);
});
$("body").bind("mouseover mouseout", function( event ) {
var elem = $( event.target ).closest("input[title]");
if ( elem.length ) console.log( "Caught bubbling", event.type, elem );
});