VOOZH about

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

⇱ Bootstrap 5 Tooltips update() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Tooltips update() Method

Last Updated : 23 Jul, 2025

Bootstrap 5 Tooltip is used to show some extra information to the user when the user hovers over the element or when the element with the tooltip is in focus. The update() method is used to update a tooltip instance after we have done setting its configuration and position etc i.e it is used to refresh the tooltip.

Syntax:

tooltip.update();

Return Value: No value is returned by the update() Method.

Example 1: In the below example we update the direction of the tooltip to "top".

Output:

👁 gif

Example 2: In this example, we update the title of the tooltip and then call its update() method.

Output:

👁 gif

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

Comment

Explore