diff --git a/site/content/docs/5.0/components/tooltips.md b/site/content/docs/5.0/components/tooltips.md index 947a50f88d..21c952d466 100644 --- a/site/content/docs/5.0/components/tooltips.md +++ b/site/content/docs/5.0/components/tooltips.md @@ -358,6 +358,15 @@ Updates the position of an element's tooltip. {{< highlight js >}}tooltip.update(){{< /highlight >}} +#### getInstance + +*Static* method which allows you to get the tooltip instance associated with a DOM element + +{{< highlight js >}} +var exampleTriggerEl = document.getElementById('example') +var tooltip = bootstrap.Tooltip.getInstance(exampleTriggerEl) // Returns a Bootstrap tooltip instance +{{< /highlight >}} + ### Events