- I have 2 nested
<div>
s, both withtooltip()
. - When I hover over the
inner
<div>
, the outer<div>
also shows it's tooltip. - I tried to work around this by setting the inner
<div>
's title to an empty string on:hover
.
$(inner).hover({
$(outer).attr('title','');
},{
$(outer).attr('title','original title');
});
I created a codepen example
note: I changed title to 'red' so you can see that the title did indeed change.
- Why is it that changing the title doesn't change tooltip's content?
- How do we change the Bootstrap Tooltip's content? (this should be a stackoverflow question of it's own)