Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 230
Ali Gajani Avatar asked Dec 16 '22 03:12

Ali Gajani


1 Answers

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

like image 62
Karthik Avatar answered Feb 28 '23 06:02

Karthik