2014-10-30 4 views
0

수행중인 작업의 역함을 찾고 있습니다 here. 특정 상황을 제외하고 툴팁을 비활성화하고 싶습니다. 여기 특정 요소를 제외한 jQuery UI 툴팁 사용 안 함

는 비활성화 추가하는 것/그냥 확인 지금 사용하고 코드,이다 :

$(function() { 
$(document).tooltip({ 
    position: { 
    my: "center bottom-20", 
    at: "center top", 
    using: function(position, feedback) { 
     $(this).css(position); 
     $("<div>") 
     .addClass("arrow") 
     .addClass(feedback.vertical) 
     .addClass(feedback.horizontal) 
     .appendTo(this); 
    } 
    } 
}); 

을});

답변

0

그냥 대신 document

$(function() { 
    $("a.has-tooltip, p").tooltip({ 
     position: { 
      my: "center bottom-20", 
      at: "center top", 
      using: function (position, feedback) { 
       $(this).css(position); 
       $("<div>") 
        .addClass("arrow") 
        .addClass(feedback.vertical) 
        .addClass(feedback.horizontal) 
        .appendTo(this); 
      } 
     } 
    }); 
}); 

데모의 특정 선택기를 사용 JSFiddle

+0

좋은 생각 - 감사합니다! – cutout