jQuery qTipプラグインを使用していますが、別の要素からHTMLコンテンツをプラグインに読み込むのに問題があります。
私は次のコードを持っています:
$('.tip').qtip({
content: {
text: $(this).next('.product_info').html()
}
});
次のhtmlで:
<a href="#" class="tip">An Image</a>
<div class="product_info">Some content</div>
問題は、「$(this)」を使用できないように見えることです。現在の「.tip」をどのように参照できますか?
ありがとう!