Horje Website
Bootstrap 3 Ref Js Tooltip Trigger Stacked – Bootstrap Ref Js Tooltip – Bootstrap JS Tooltip Reference – Bootstrap Code

Bootstrap 3 Ref Js Tooltip Trigger Stacked – Bootstrap Ref Js Tooltip

Bootstrap 3 Ref Js Tooltip Trigger Stacked - Bootstrap Ref Js Tooltip - Bootstrap JS Tooltip Reference - Bootstrap Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Bootstrap Example</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  10. </head>
  11. <body>
  12. <div class="container">
  13. <h3>Tooltip Options</h3>
  14. <p>The <strong>trigger</strong> option specifies how the tooltip is triggered.</p>
  15. <div>
  16. <button class="btn btn-success btn-md">Click me</button>
  17. <button class="btn btn-warning btn-md">Hover over me</button>
  18. <button class="btn btn-danger btn-md">Focus (tab or click)</button>
  19. </div>
  20. </div>
  21. <script>
  22. $(document).ready(function(){
  23. $('.btn-success').tooltip({title: "Hooray!", trigger: "click"});
  24. $('.btn-warning').tooltip({title: "Hooray!", trigger: "hover"});
  25. $('.btn-danger').tooltip({title: "Hooray!", trigger: "focus"});
  26. });
  27. </script>
  28. </body>
  29. </html>



Try Your Self ->



Published:
October 6, 2020
Author:
admin
Category:
Bootstrap 3 JavaScript Reference, Bootstrap Source Code
Views:
21

This article was posted in Bootstrap 3 JavaScript Reference, Bootstrap Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2023