我正在尝试使用这些工具提示来使用这段代码。在此链接中:。事实上,我只是复制了整个代码,但现在它可以工作了。我收到一个错误,显示为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">&
我实现了基于的工具提示。我看到工具提示但没有风格。似乎样式表中的内容不能正常工作。
我的代码:
JS
// select all desired input fields and attach tooltips to them
$("#edit_foto_form :input").tooltip({
// place tooltip on the right edge
position: "center right",
// a little tweaking of the position