Tooltip


Bootstrap Plugins Public

Easy  

2min

Select the code snippets that, besides referencing bootstrap.css and bootstrap.js, are required to produce the following effect:

A bootstrap hover-over effect.

<script src="jquery.js"></script>
<script> 
var a = document.getElementsByTagName("a"); 
for (var i = 0; i < a.length; i++) { a[i].className += " tooltip-right"; }
</script>
<script> $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip(); }); </script>
<a href="#" data-tooltip="Nice!" data-position="right">Hover over me!</a>
<a href="#" data-toggle="tooltip" data-placement="right" title="Nice!">Hover over me!</a>