Filippo oretti
Filippo oretti

Reputation: 49883

bootstrap not showing tooltip

I followed bootstrap main page examples to setup some tooltips in my page but they doesn't works. i tryed just this:

<script type="text/javascript" src="vendor/js/jquery.js"></script>    
<script type="text/javascript" src="vendor/js/bootstrap.js"></script>
        <script type="text/javascript">

        var options ;
        $('.tip').tooltip();
    </script>

    <a href="#" rel="tooltip" class="tip" title="first tooltip" data-original-title="Logout">

why does it doesn't works and doesn't show me any console error? i'm using latest boostrap version

Upvotes: 0

Views: 2090

Answers (1)

Matt Mombrea
Matt Mombrea

Reputation: 6831

you should either move the script below the HTML it references or wrap it in:

$(document).ready(function() {
  $('.tip').tooltip();
});

To ensure that the DOM has been loaded before you call the tooltip() method.

Upvotes: 1

Related Questions