Я пытаюсь использовать этот код с этими всплывающими подсказками. По этой ссылке: Code with tooltip. На самом деле я просто скопировал весь код, но теперь он работает. я получаю ошибку говорит Uncaught TypeError: $(...).tooltip is not a function error
:
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$(document).tooltip({
position: {
my: "center bottom-20",
at: "center top",
using: function(position, feedback) {
$(this).css(position);
$("<div>")
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo(this);
}
}
});
});
</script>
Что здесь отсутствует?
Edit:
<script>
jQuery(document).ready(function($) {
$('.hasTooltip').tooltip();
});
</script>
С его помощью, как это, решить мою проблему!
http://jsbin.com/kuteqafele/1/edit?html,output - я не могу воспроизвести проблему. – Quentin
Почему вы загружаете jQuery ui дважды? –
@JuanMendes, что вы имеете в виду? –