Error "Uncaught TypeError: $ (...) .tooltip is not a function"

0

I have a compatibility problem with something in Jquery. I already use this instruction package (this will be the third time) and I have never had this problem.

I have already removed all the scripts above it, isolated Jquery and in the end, it was an afternoon trying to find some solution. Follow the code.

jQuery(document).ready(function($) {
  $('a.btn').tooltip({
    "placement": "top"
  });

  /* === SHOW MESSAGES === */
  $('.cart-message, .wish-message').css('display', 'none');

  function showMessage(value) {
    $.gritter.add({
      title: ' Information', // (string | mandatory) the heading of the notification
      text: $('.' + value + '-message p').text(), // (string | mandatory) the text inside the notification
      time: 2000 // (int | optional) the time you want it to be alive for before fading out (milliseconds)
    });
  }
  /* === END SHOW MESSAGES === */
});
<script type="text/javascript" src="<?php echo $dir_base; ?>js/jcart/public/vendor/gritter/js/jquery.gritter.min.js"></script>
<script type="text/javascript" src="<?php echo $dir_base; ?>js/jcart/public/js/localstorage-jcart.js"></script>
    
asked by anonymous 10.11.2018 / 14:31

0 answers