使用搜索选项创建选择框 [英] Creating a select box with a search option

查看:89
本文介绍了使用搜索选项创建选择框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图复制您在此图片中看到的内容。



我希望能够或者直接点击该选项直接点击该选项。

最好的方法是什么?是否有任何bootstrap相关的已存在?

解决方案

Select2 http://select2.github.io 可能比Chosen更好,更活跃。



查看此比较:
http://sitepoint.com/jquery-select-box-components-chosen-vs-select2



我去了Select2 (几个月前),因为Chosen在通过IME使用中文字符时遇到了问题 http:// github .com / harvesthq /选择/问题/ 2663 它很好。


I am trying to replicate what you can see here in this image.

I want to be able to either type in the text field above the box or just click on the option directly.

What would be the best way to go about that? Is there anything bootstrap related that exists already?

解决方案

Select2 http://select2.github.io may be even better and more active than Chosen.

See this comparison: http://sitepoint.com/jquery-select-box-components-chosen-vs-select2

I went for Select2 (a few months ago) because Chosen had an issue when using Chinese characters via an IME http://github.com/harvesthq/chosen/issues/2663 It works great.

这篇关于使用搜索选项创建选择框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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