Prev Demo
Tooltip With Actions
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap navbar</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $(".show-well").click(function () { $(".tooltip-bar a").tooltip('show'); }); $(".hide-well").click(function () { $(".tooltip-bar a").tooltip('hide'); }); $(".toggle-well").click(function () { $(".tooltip-bar a").tooltip('toggle'); }); $(".destroy-well").click(function () { $(".tooltip-bar a").tooltip('destroy'); }); }); </script> </head> <body> <h2>Tooltips actions</h2> <div class=" alert alert-danger"> <div class="well"> <p class="tooltip-bar"> <a href="#" class="btn btn-default" data-toggle="tooltip" data-original-title="Welcome to Home">Home</a> </p> <div> <p>Below are Tooltip actions from JavaScript</p> <input type="button" class="btn btn-success show-well" value="Show" /> <input type="button" class="btn btn-primary hide-well" value="Hide" /> <input type="button" class="btn btn-warning toggle-well" value="Toggle" /> <input type="button" class="btn btn-danger destroy-well" value="Destroy" /> </div> </div> </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output