开发者

function not working for jquery load() content tags?

开发者 https://www.devze.com 2023-03-25 06:18 出处:网络
$(function(){ $(\".开发者_运维百科tiptip\").tipTip(); }); this tooltip function is working for all links.But it doesn\'t work for what are loaded through jquery load() function.
$(function(){
 $(".开发者_运维百科tiptip").tipTip();
});

this tooltip function is working for all links.But it doesn't work for what are loaded through jquery load() function.

I have experienced in live() function.I have used this function on content events(click,change,blur) loaded via load().

But i don't know how to use this for content loaded via load().

Please help me.


This is the official reply to this question. https://drew.tenderapp.com/discussions/tiptip/2


You could use the callback function when the load completes:

$.load('test.html', function() {
    $('.tiptip').tipTip();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消