To create a tooltip, add the data-toggle="tooltip" attribute to an element. Tooltip are quite useful for showing description of different elements in the webpage. Tooltip can be invoked on any element in a webpage. Use the title attribute to specify the text that should be displayed inside the tooltip:
<a href="#" data-toggle="tooltip" title="Hooray!">Hover over me</a>
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
To create a tooltip, add the data-toggle="tooltip" attribute to an element. Tooltip are quite useful for showing description of different elements in the webpage. Tooltip can be invoked on any element in a webpage. Use the title attribute to specify the text that should be displayed inside the tooltip:
Syntax:
<script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script>Example :
Happy coding :)