Search code examples
twitter-bootstraptooltip

Bootstrap tooltip isn't working


My JavaScript:

<script>
    $(function(){
        $('a[rel=tooltip]').tooltip();
    });
​</script>

And my HTML:

<br><br><br>This is an example of a sentence with a
<a href="#" rel="tooltip" title="This is the tooltip!">tooltip</a>!

This doesn't show the Bootstrap 2.0 tooltip but shows some default one.


Solution

  • Try adding the code in footer. it worked for me! for some reason it doesn't work in header!