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

Bootstrap 3 Ref Js Tooltip Methods Stacked – Bootstrap Ref Js Tooltip

Bootstrap 3 Ref Js Tooltip Methods 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. <style>
  11. a {
  12. font-size: 25px;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div class="container">
  18. <h3>Tooltip Methods</h3>
  19. <a href="#" data-toggle="tooltip" title="Hooray!">Tooltip Example</a>
  20. <div>
  21. <p>Click on the buttons to manually control the tooltip above:</p>
  22. <button type="button" class="btn btn-primary">Show</button>
  23. <button type="button" class="btn btn-warning">Hide</button>
  24. <button type="button" class="btn btn-success">Toggle</button>
  25. <button type="button" class="btn btn-danger">Destroy</button>
  26. </div>
  27. </div>
  28. <script>
  29. $(document).ready(function(){
  30. $(".btn-primary").click(function(){
  31. $("[data-toggle='tooltip']").tooltip('show');
  32. });
  33. $(".btn-warning").click(function(){
  34. $("[data-toggle='tooltip']").tooltip('hide');
  35. });
  36. $(".btn-success").click(function(){
  37. $("[data-toggle='tooltip']").tooltip('toggle');
  38. });
  39. $(".btn-danger").click(function(){
  40. $("[data-toggle='tooltip']").tooltip('destroy');
  41. });
  42. });
  43. </script>
  44. </body>
  45. </html>



Try Your Self ->



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

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 - 2022