Unturect typeError:无法读取未定义的属性(读取'长度')。 JQuery的自动烟
这里的简单代码正在尝试使用自动建议,
这是我为.js文件(内部(文档)函数)编写的自动码代码,
$(function () {
var list = [
"One",
"two",
"Three",
"Four",
];
debugger;
$("#text").autocomplete({
minLength: 0,
delay: 0,
placeholder: "Select Transporter...",
source: list
});
html代码
<input type="text" id="text" value="text" />
错误显示为:
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
无法看到任何动作。文本框。以上错误是在控制台中 请帮助我。并分享我可以学习和实施自动避难的链接
simple code here am trying for auto suggestion
this is my autosuggestion code for written in .js file (inside (document).ready function)
$(function () {
var list = [
"One",
"two",
"Three",
"Four",
];
debugger;
$("#text").autocomplete({
minLength: 0,
delay: 0,
placeholder: "Select Transporter...",
source: list
});
html code
<input type="text" id="text" value="text" />
error showing as :
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
not able to see any moves.after entering somthing then when i come out of textbox . this above error comes in console
please help me out . and share link where i can learn and implement about auto-sugestion
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 https://jqueryui.com/autocomplete/
确保您导入了这两个CDN
最终代码喜欢此
From https://jqueryui.com/autocomplete/
make sure you imported these two CDN
final code would like this