VOOZH about

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

⇱ Bootstrap 5 Popovers disable() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Popovers disable() Method

Last Updated : 23 Jul, 2025

Bootstrap 5  popoverdisable() method is used to disable the element’s popover to be displayed. Popover can only be displayed when it is enabled with the help of the required method.

Syntax:

popover.disable() 

Return Value: This method disables the element’s popover to be displayed

Let us understand more about this using example

Example 1: In this example, we will learn about disable() method.

Output:


Example 2: In this example, we will see the working of disable() method. When we will disable a popover, it will not appear. 

Output:


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

Comment

Explore