Help your users understand stuff better in your app or website with tooltips:
<span title=”Push it real good” data-toggle=”tooltip”>
Push It
</span>
You’ll need to initialize tooltips via JavaScript:
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
Want your tooltip over, under or to the side of your element? Add the data-placement attribute on your element:
<a href=”#” data-toggle=”tooltip”
data-placement=”left”
title=”Knock you out”>
Mama said
</a>
Don’t forget to include jQuery and bootstrap.js as these are necessary for tooltips to work.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.
Sign up