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

0

This bug is appearing when I press F12, and Bootstrap's data-toggle="tooltip" does not appear on the page can anyone help me?

Uncaught TypeError: $(...).tooltip is not a function
    at HTMLDocument.<anonymous> (conf.js:39)
    at j (jquery-1.11.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2)
    at Function.ready (jquery-1.11.1.min.js:2)
    at HTMLDocument.J (jquery-1.11.1.min.js:2)
    
asked by anonymous 24.03.2017 / 20:42

2 answers

2

You have not included Bootstrap correctly on your page. To do so, it needs a tag <script> within the tag <head> , something like this:

<!DOCTYPE html>
<html>
    <head>
        <title>Minha página de Bootstrap</title>
        <meta charset="utf-8">
        <script type="text/ecmascript" src="caminho/para/bootstrap.js"></script>
        <script type="text/ecmascript">
            // funções da página...

And so on. Note that due to some features (read: bugs ) of certain old browsers, the tags of <script> with a src attribute (ie those that import files instead of setting javascript in the HTML itself) must have an explicit tag (that is, you can not say <script type="text/ecmascript" scr="script.js" /> ).

Having this reference to the Bootstrap file, tooltip() and other functions will start to work.

    
25.03.2017 / 06:52
0

This problem must be occurring because of some more javascript conflict, make a test, remove all and just put them below:

                                                                                                                                                                                   

<!-- Custom Theme Scripts -->
<script src="../build/js/custom.min.js"></script>
    
30.05.2018 / 15:45