How can I make the new JqueryUI tooltip visible only on focus
: At the moment its on focus
and on hover
. I believe this is since JqueryUI 1.9
A bit shorter way:
$(".selector").tooltip().off("mouseover mouseout");
This isn't ideal, but it should work:
$(".selector").tooltip({
disabled: true
}).on("focusin", function () {
$(this)
.tooltip("enable")
.tooltip("open");
}).on("focusout", function () {
$(this)
.tooltip("close")
.tooltip("disable");
});
Basically, enable/open the tooltip on focusin
and disable/close on focusout
.
Example: http://jsfiddle.net/WmRuN/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With