Bootstrap .tooltip("hide") method

BootstrapWeb DevelopmentCSS Framework

Use the tooltip(“hide”) method in Bootstrap to hide the tooltip. The tooltip hides on button click as shown below −


Above the data-toggle attribute can be seen which we set before on <a> element. Now the toggle will generate from the link when the button is clicked −

<a href="#" data-toggle="tooltip" title="Tooltip is visible!">
  Tooltip will be visible here

You can try to run the following code to implement the tooltip(“hide”) method −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>

  <div class="container">
    <a href="#" data-toggle="tooltip" title="Tooltip is visible!">Tooltip will be visible here</a>
      <button type="button" class="btn btn-primary">Show Tooltip</button>
      <button type="button" class="btn btn-default">Hide Tooltip</button>


Updated on 17-Jun-2020 15:15:09