使用 jquery 的下拉文本框
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3194796/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
dropdown-textbox using jquery
提问by vinay
is there any jquery plugin which provides an dropdown-textbox functionality?
something similar to http://lab.anotherdan.com/js/textdropdownlist/In this example he is making use of ul and li items.. but can the same be done for <options>
?
i am not sure if what i am asking is even possible. so any suggestions regarding this would be much appreciated.
有没有提供下拉文本框功能的jquery插件?类似于http://lab.anotherdan.com/js/textdropdownlist/在这个例子中,他正在使用 ul 和 li 项目..但可以做同样的事情<options>
吗?我不确定我要问的是否可行。所以关于这方面的任何建议将不胜感激。
回答by Marko
check it out jquery ui library:
查看 jquery ui 库:
http://jqueryui.com/demos/autocomplete/#combobox
http://jqueryui.com/demos/autocomplete/#combobox
cheers
干杯