- I have a setup with 2 nested
<div>
elements, both utilizing thetooltip()
function. - When I hover over the inner
<div>
, the tooltip of the outer<div>
also displays. - To resolve this issue, I attempted to clear the title of the inner
<div>
on:hover
.
$(inner).hover({
$(outer).attr('title', '');
}, {
$(outer).attr('title', 'original title');
});
A functioning example is available in my CodePen demo. Note that I changed the title to 'red' for visibility.
- Why doesn't changing the title alter the tooltip's content?
- What is the process for modifying the Bootstrap Tooltip's content? (This could be its own standalone question on Stack Overflow)