According the documentation is is possible to turn off the functionality just doing $('body').off('.alert.data-api').
In the case of tooltip I tried the following from js console $('body').off('.tooltip.data-api') but it does not disable the tooltip on bottons.
Any hints how to precede?
According the documentation is is possible to turn off the functionality just doing $(‘body’).off(‘.alert.data-api’)
Share
You can’t disable tooltips that way because it has no event listener on the body. Instead, you can disable the tooltips themselves using the code below.
Edit: For Bootstrap 4, the
'destroy'command has been replaced by the'dispose'command, so: