Coding⏱️ 2 min read📅 2026-06-03

How to Fix: How to enable Bootstrap tooltip on disabled button?

Enable Bootstrap tooltip on disabled button and remove it on enabled button.

Quick Answer: Use the `disabled` attribute to toggle the tooltip on and off, and use JavaScript to handle the state change.

To enable Bootstrap tooltip on a disabled button, you need to remove the 'disabled' attribute from the button's HTML and apply the tooltip class manually.

🔍 How to Enable Bootstrap Tooltip on Disabled Button

  • Remove the 'disabled' attribute from the button's HTML:

Method 1: Remove Disabled Attribute

  1. Step 1: Use jQuery to remove the 'disabled' attribute from the button:

Example Code

$('[data-toggle="tooltip"]').tooltip();

🚀 How to Resolve This Issue

  • Apply the tooltip class manually:

Method 2: Apply Tooltip Class Manually

  1. Step 1: Add the 'tooltip' class to the button:

Example Code

$('[data-toggle="tooltip"]').tooltip();

🎯 Final Words

By following these steps, you can enable Bootstrap tooltip on a disabled button and remove it on an enabled button.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions