下面是我的代码
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
我的 Html 代码是
<div class="ui-widget">
<input name="searcharea" class="selectarea" id="searcharea" type="text" value="" placeholder="Area">
</div>
我的功能是
<script>
$(function(){
$( "#searcharea" ).autocomplete({
source: "suggestions.php"
});
$( "#searchcat" ).autocomplete({
source: "suggestions1.php"
});
});
</script>
我已将此页面包含到带有我网站的搜索代码的单独文件中,并将其嵌入到各个页面中,在我的索引页面上,它建议我源文件中的值,但在其他页面上,它给我在线打字错误
$( "#searcharea" ).autocomplete({
我的网站链接是:http://www.jodhpuryp.in/
这是我的自我建议箱的来源http://api.jqueryui.com/autocomplete/
谁能告诉我,为什么我在索引页面上工作时在网站的其他页面上收到此错误。任何帮助都会受到赞赏。谢谢
发现问题,我为我的谷歌翻译器添加了另一个 jquery 文件,它们相互冲突,导致无法加载自动完成功能。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)