I have this error and have tried everything, but nothing here the error:
jQuery.Deferred exception: $(...).tooltip is not a function TypeError: $(...).tooltip is not a function
at HTMLDocument.<anonymous> (http://askmee.tk/zero0:54:34)
at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
at k (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313)
undefined
r.Deferred.exceptionHook @ jquery.min.js:2
k @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
S @ jquery.min.js:3
jquery.min.js:2 Uncaught TypeError: $(...).tooltip is not a function
at HTMLDocument.<anonymous> (zero0:54)
at j (jquery.min.js:2)
at k (jquery.min.js:2)
Code:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
echo "<a data-id=\"{$answer['ask_hash']}\" data-toggle=\"tooltip\" title=\"Like\" onclick=\"like.add('{$to_id->login}','{$answer['ask_hash']}',false); return false;\" href=\"/{$to_id->login}/answer/{$answer['ask_hash']}/like\" class=\"ask-like $promt\"><i class=\"like\"></i></a>";