javaScript Option to deactivate all bs.tooltip on document 1

javaScript Option to deactivate all bs.tooltip on document

$('[data-toggle="tooltip"]').tooltip('dispose'); // used in v4
$('[data-toggle="tooltip"]').tooltip('destroy'); // used in v3 and older

Here is what the above code is Doing:
1. First, we’re using the jQuery selector to select all elements with the data-toggle attribute set to tooltip.
2. Then, we’re using the tooltip() method to destroy the tooltip.
3. Finally, we’re using the tooltip() method to initialize the tooltip.

Similar Posts