문제

By default (more precisely, it's designed so that) a jQueryUI tooltip appears on mouseover and focusin events. What I need is the same functionality, but not on mouseover, rather upon a certain condition. It's really cool the way tooltip appears with different possible animations. But it'd be wonderful if I could tweak it to pop up whenever I call it. Do you think it's possible with some minor adjustments to the source or would it need lots of coding?

도움이 되었습니까?

해결책

From looking at the jQuery UI API page, you could use the open and close methods to show and hide the tooltip whenever you need to (copy/pasted from jQuery UI Tooltip API documentation):

$( ".selector" ).tooltip( "open" ); will show the tooltip. To hide it again, just use $( ".selector" ).tooltip( "close" );

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top