Hi,
I'm trying to call a different tooltip according to an anchor tag's id attribute. My JavaScript code is as follows:
$(function()
{
$('.tippy').qtip(
{
content: {
url: "http://mydomain.com/product/mini/" + $(this).attr("id") // doesn't work
},
hide: { when: 'mouseout', fixed: true },
position: {
corner: {
target: 'bottomRight',
tooltip: 'topLeft'
}
}
});
});
my html code looks like this:
<div>this is the text and I would like to reference the <a href="product.php" class="tippy" id="123456">superproduct</a> with qtip.</div>
I'm pretty stuck, could you give me a hand please?