.autocomplete不是函数错误

用户名

以下是我的代码

<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>

我已将此页面包含在带有我网站搜索代码的单独文件中,并将其嵌入到各个页面中,在索引页面上,它建议我从源文件中获取值,但在其他页面上,它使我在网上出现typerror

$( "#searcharea" ).autocomplete({

我的网站链接是:http : //www.jodhpuryp.in/

这是我的自动提示框的来源http://api.jqueryui.com/autocomplete/

有人可以告诉我,为什么我在索引页面上工作时在网站的其他页面上遇到此错误。感谢您的帮助。

用户名

发现了问题,我为Google翻译添加了另一个jquery文件,它们相互冲突并导致未加载自动完成功能。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

.autocomplete不是函数错误

来自分类Dev

addEventListener不是函数错误

来自分类Dev

“调度”不是函数错误

来自分类Dev

.filter 不是函数错误?

来自分类Dev

getFeaturesByAttribute 不是函数错误

来自分类Dev

django-autocomplete-light教程:select2不是函数错误

来自分类Dev

箭头函数错误:对象不是函数

来自分类Dev

获取类型错误:* 不是函数错误

来自分类Dev

angularjs对象不是函数错误

来自分类Dev

TypeError:$(...)。dialog不是函数错误

来自分类Dev

sequelize .create不是函数错误

来自分类Dev

React DND,connectDragSource不是函数错误

来自分类Dev

“ setOwner”不是函数错误-App脚本

来自分类Dev

React DND,connectDragSource不是函数错误

来自分类Dev

React Native undefined不是函数错误

来自分类Dev

javascript - 单击不是函数错误

来自分类Dev

回调不是函数错误 [Nodejs]

来自分类Dev

遇到 this.state 不是函数错误

来自分类Dev

函数内的承诺得到错误不是函数错误

来自分类Dev

jQuery UI某些函数错误TypeError:$(...)。accordion不是函数

来自分类Dev

函数错误中的Javascript方法“不是函数”

来自分类Dev

未捕获的类型错误:$(...).datetimepicker 不是函数错误

来自分类Dev

Javascript,jQuery错误TypeError:$(...)。autocomplete不是函数

来自分类Dev

Javascript,jQuery错误TypeError:$(...)。autocomplete不是函数

来自分类Dev

ReactJS提供inst.render不是函数错误

来自分类Dev

Createjs冲突问题localToLocal不是函数错误

来自分类Dev

jQuery数据表:columnFilter()不是函数错误

来自分类Dev

不是通用范围内的函数错误

来自分类Dev

字符串不是函数错误吗?

Related 相关文章

热门标签

归档