这里我的代码如何把<a>链接放在<span>的<a>?
<a href="http://linkurl" class="link" title="sometitle">
text link
<span class="hidden-tooltip-data" style="display: none;"> <a
href="http://www.google.ca"> my link here destroy everything </a
</span>
</a>
我用Poshy这里脚本
$('.link').each(function() {
var tooltip = $(".hidden-tooltip-data",this).html();
$(this).attr("title","");
$(this).poshytip({
content: function(updateCallback) {
return tooltip;
}
});
});
不管怎么说,你都不应该在另一个''里放置''。你也不会解释你想要做什么,你只需要向我们扔一堆代码。 – qJake 2011-05-30 18:05:11
这是错的,你为什么要那样做? – kobe 2011-05-30 18:06:01
你的问题没有道理...... – VirtualTroll 2011-05-30 18:06:03