i want to show a tooltip when i highlight over any text inside of "class=div". I have the following HTML:
<div class='test'>Test</div>
<div class='tooltip'>Tooltip 1</div>
<div class='test'>Test 2</div>
<div class='tooltip'>Tooltip 2</div>
<div class='test'>Test 4</div>
<div class='tooltip'>Tooltip 4</div>
and the following javascript:
<script type="text/javascript">
$(document).ready(function () {
$('div.test').each(function () {
var tooltipHtml = //NEED to figure out how get the html of the Tooltip div below this current div
$(this).qtip({
content: {
text: tooltipHtml
},
style: { width: 450 }
});
});
});
How do i get the html from the "next" tooltip div?