VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-tooltips-disable-method/

⇱ Bootstrap 5 Tooltips disable() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Tooltips disable() Method

Last Updated : 31 Jul, 2024

Bootstrap 5 Tooltips disable() method is used to remove a tooltip's ability to be visible, manually. After using this method, the user won't be able to see the tooltip at all. 

Syntax:

tooltip.disable()

Return Value: This method gives the tooltip the ability to be hidden.

Let us understand more about this using some examples below:

Example 1: In this example, we will create Bootstrap 5 Tooltips and call disable on the tooltip which is positioned to appear on the top of the button. Calling disable method will vanquish the tooltip's ability to be seen.


Output:

Example 2: In this example, we will create Bootstrap 5 Tooltips and call disable on all of the tooltips. Calling disable method will vanquish the tooltip's ability to be seen.


Output:

Reference: https://getbootstrap.com/docs/5.0/components/tooltips/#disable

Comment

Explore