Hi, dear all.
I hope you can show me the way to the solution of the following proble^
I have multiple triggers and its contents on the page
How do I link specific content to trigger?
I guest I can grab it through $(Obj).parents('div').find('.content') but how do I pass the trigger Obj?
I hope you can show me the way to the solution of the following proble^
I have multiple triggers and its contents on the page
How do I link specific content to trigger?
I guest I can grab it through $(Obj).parents('div').find('.content') but how do I pass the trigger Obj?
<div class="item">
<div class="trigger">some text</div>
<div class="content">some content some content some
content some content some content </div>
</div>
<div class="item">
<div class="trigger">another text</div>
<div class="content">another content another content
another content another content </div>
</div>
<div id="tooltip"> </div>
$(function() {
if ($(".trigger").length) {
$(".trigger").tooltip({
tip: '#tooltip',
lazy: false,
onBeforeShow: function() {
$("#tooltip").html()
}
}).dynamic({
bottom: {
direction: 'down',
bounce: true
}
});
}
}
