可主题化的 jquery UI 下拉菜单

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12077558/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 11:16:59  来源:igfitidea点击:

themable jquery UI dropdown

jqueryjquery-ui

提问by arahant

I am looking for a jQuery dropdown that can be themed using jQuery UI. There existed some examples at http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.htmlbut these are not supported now in jQuery UI 1.8

我正在寻找一个可以使用 jQuery UI 进行主题化的 jQuery 下拉菜单。http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html 上存在一些示例,但现在 jQuery UI 1.8 不支持这些示例

Is there something else I can readily use or do I need to create my own?

是否还有其他我可以轻松使用的东西,或者我需要创建自己的东西吗?

回答by Royce Feng

Chosenand Select2come to mind

选上的,并选择二浮现在脑海中

回答by jrummell

The autocomplete widget has an example that uses what they call a combobox, which is essentially a themed drop down.

自动完成小部件有一个使用他们所谓的组合框的示例,它本质上是一个主题下拉菜单。

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

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

You should be able to take the source provided and modify it to work with a normal <select>.

您应该能够获取提供的源代码并对其进行修改以使用正常的<select>.

回答by Fanky

It seems selectmenu is supported at least now in 1.11.4

似乎现在至少在 1.11.4 中支持 selectmenu

https://jqueryui.com/selectmenu/

https://jqueryui.com/selectmenu/