3
나는 동적으로로드 된 목록을 툴팁과 함께 어떻게 관리 할 수 있는지 알아 내려고한다. 링크에 제목 태그가 있으면 도구 설명 기능을 시작하고 싶습니다. 하지만 함수에 "title"요소를 "보"도록 DOM에 새 요소를 추가해야합니다.jQuery Ajax - DOM에 새로운 요소 추가하기
이것은 지금 보이는 방법입니다. 툴팁은 작동하지만로드 된 요소에는 작동하지 않습니다.
$(document).ready(function() {
$("#home").click(function(){
$(".content ").load("start.html");
});
$("[title]").style_my_tooltips({
tip_follows_cursor: "on",
tip_delay_time: 300
});
나는 묶어서 사용해 보았지만 나에게는 아무런 효과가 없었다. live() 함수로 시도해보십시오.
$("#home").live("click", function(){
$(".content ").load("start.html");
});
작동하지 않았습니까?
감사합니다. $("[title]", this)
의 문맥으로 this
를 사용하여
$("#home").click(function(){
$(".content").load("start.html", function() {
$("[title]", this).style_my_tooltips({
tip_follows_cursor: "on",
tip_delay_time: 300
});
});
});
, 우리는 새로운 [title]
요소를 찾고 :
당신은이 같은 새로운 내용에 다시 플러그인을 실행해야 최대
매력처럼 작동합니다! 고맙습니다. – madmax
@madmax - 환영합니다! :) –