Search code examples
jquerytwitter-bootstrapbrowsertooltip

bootstrap tooltip does not work in chrome (on deployment only)?


I'm using bootstrap's tooltip and it's working fine on different browsers (including chrome) when it runs local.

When I'm running it online it does not respond in chrome, but in safari for example it does. This is my jquery code for initiating:

 $('#cdssdemo, #contactemail, #contactphone')
   .tooltip()
   .click(function(e) { 
       e.preventDefault(); 
       $(this).focus(); 
   });

This is an example element for tooltip:

<li>
    <a href="tel:0000">
        <i class="fa fa-phone" data-toggle="tooltip" title="0000" id="contactphone"></i>
    </a>
</li>

Any help is appreciated. Thanks.


Solution

  • The problem was chrome cached my older js files. When I try in Incognito Mode it works fine.