Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Target different id

I thought the target option was for this functionality, but I can't seem to get it to work:

I have two links/buttons. When I hover over the first button, I want the tooltip to appear on the second button.

HTML:

//My Buttons
<span id="button1" class="inline" data-tipped-options="target: \'#button2\', inline: \'myTooltipDiv1\'">BUTTON ONE</span>
<span id="button2" class="inline" data-tipped-options="target: \'#button1\', inline: \'myTooltipDiv2\'">BUTTON TWO</span>

JAVA:
Tipped.create('.inline');

Tooltips work and appear over themselves, e.g. button1 tooltip appears over button1. I thought the target option would make it appear over a different id.

Comments

Sign In or Register to comment.