[英]Jquery autocomplete not showing 2 or multiple spaces in drop down suggested
[英]jquery autocomplete not showing drop down list, rather how many options available
我有一个简单的自动完成功能
<input id="stafflist" type="text" placeholder="Start Typing Staff Name" class="form-control" >
和以下脚本进行设置
$( "#stafflist" ).autocomplete({
source: [ "Name PersonA", "Name PersonB", "Name PersonC", "Name PersonD", "Name PersonE", "Name PersonF" ]
});
当我开始打字时,它会告诉我有多少个可用选项:
有1个结果可用,使用上下箭头键进行导航。
但是上次使用此功能时,我确定下拉框是从列表中选择值的默认方法...我该如何带回下拉框???
谢谢!
从输入字段中删除type =“ text”。Type文本不适用于下拉菜单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.