jQuery组合框/选择自动完成? [英] jQuery Combobox/select autocomplete?

查看:17
本文介绍了jQuery组合框/选择自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于替换选择/组合框的 jQuery 插件?

Does a jQuery plug-in exist for replacing select/combo box?

我尝试了SexyCombo,它和我想要的一样接近,但是如果你从中间写,它不会完成,只能从头开始.

I tried SexyCombo, and it is as close to what I want, but it doesn't complete if you are writing from middle, only from beginning.

我有2个级别的分类(20个顶级分类,子分类共120个分类),所以用户提交条目时,他必须尽快找到想要的分类.

I have 2 levels of categories (20 top level categories, and with subcategories in total 120 categories), so when user is submitting an entry, he must find desired category as soon as possible.

所以... 2 个级别 + 自动填充填充文本,即使您写中间字母.

So... 2 levels + autocomplete populate text even if you write middle letters.

或者任何其他解决方案?

Or any other solution?

推荐答案

看看下面的 jQueryUI 自动完成示例,因为它保留了一个选择,我认为这就是你要找的.希望这会有所帮助.

Have a look at the following example of the jQueryUI Autocomplete, as it is keeping a select around and I think that is what you are looking for. Hope this helps.

http://jqueryui.com/demos/autocomplete/#combobox

这篇关于jQuery组合框/选择自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆