A bit shorter way:
$(".selector").tooltip().off("mouseover mouseout");
문제
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/