I have a span inside a div and I'm trying to add a Bootstrap 3 tooltip to it:
<div style="display:inline-block;margin-right:10px;">
<h3>
<span class="label label-default">
Chickens: <span style="color:#fff;">3</span>
</span>
</h3>
</div>
How do I get this to work?
I think you are asking for something like this: https://jsfiddle.net/g74Ep/471/
<div style="display:inline-block;margin-right:10px;margin-top: 40px;">
<h3>
<span class="label label-default" href="#" data-toggle="tooltip" title="3">
Chickens:
</span>
</h3>
</div>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With