I have a $("#settings")
div with multiple bootstrap tooltips attached to the child elements.
For example,
<div id="settings" style="display: flex;">
<tbody>
<tr>
<td width="25%" class="left Special" style="font-size:150%">Content:</td>
<td width="5%"></td>
<td width="70%" class="Special settingswrong" style="font-size:200%"><div style="display:inline" data-toggle="tooltip" data-placement="right" title="" data-original-title="This is not what you are looking for!">Content</div></td>
</tr>
<tr>
<td width="25%" class="left Special" style="font-size:150%">Content:</td>
<td width="5%"></td>
<td width="70%" class="Special settingswrong" style="font-size:200%"><div style="display:inline" data-toggle="tooltip" data-placement="right" title="" data-original-title="This is not what you are looking for!">Content</div></td>
</tr>
</tbody>
</div>
I want to do $("#settings").tooltip('destroy')
to get rid of all these tooltips on a button press, but it doesn't work, I'm assuming because the tooltips aren't actually on the settings div, but inside it.
However I also tried $('#settings').find('*').tooltip('destroy')
and that didn't work either.
Is it because of how I am initializing them?
$(document).ready(function() {
$("body").tooltip({ selector: '[data-toggle=tooltip]' });
});
What is a fast and easy way to access all the tooltips within a div?