开发者

Show tooltip only on a specific css class with jquery

开发者 https://www.devze.com 2023-02-28 16:24 出处:网络
$(document).ready(function() { $(\"[title]:not(.ItemImage)\").removeAttr(\'title\'); }); This removes the tooltip开发者_高级运维 of anything else but it not remove the default tooltip from my specif
$(document).ready(function() {
    $("[title]:not(.ItemImage)").removeAttr('title');
});

This removes the tooltip开发者_高级运维 of anything else but it not remove the default tooltip from my specific class (.ItemImage).


You can custom Class right.

difine two set of class..so that you can disable the set


are you mean this ?

$('a.have_tt').attr('title',$(this).data('title'));
0

精彩评论

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