【发布时间】:2012-04-05 17:37:17
【问题描述】:
我认为我的问题的答案是使用 delegate() 但我不完全确定 - 并且需要一个指针...
我正在使用相当出色的 EasyTooltip 插件向 div 内的所有锚点添加简单的工具提示。
这一切都可以在 document.ready() 上执行以下操作:
jQuery(".profile-popup").each(function() {
jQuery(this).easyTooltip({
useElement: "toolTipLikingIt",
xOffset: -100,
yOffset: -20
});
});
但是,在某些情况下,我也在脚本的其他地方向该 div 添加新的锚点。 我确实尝试在创建锚点的事件中添加对相同 .easyTooltip() 函数的调用,但这不起作用。
谁能提出解决方案?
插件来自:http://cssglobe.com/post/4380/easy-tooltip--jquery-plugin
谢谢!
史蒂夫
【问题讨论】:
标签: jquery jquery-plugins tooltip