在 jquery UI 上创建一个样式化的下拉列表

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

Create a styled Dropdown like on jquery UI

jqueryselect

提问by Jorre

On http://jqueryui.com/demos/accordion/at the top right corner, you can see a dropdown that says "Theme: UI Lightness" by default.

http://jqueryui.com/demos/accordion/的右上角,您可以看到默认情况下显示“主题:UI 亮度”的下拉列表。

I'd love to create such an interactive element in my web application. Does anyone know of a good jquery plugin to easily do this?

我很想在我的 Web 应用程序中创建这样一个交互式元素。有谁知道一个很好的jquery插件可以轻松做到这一点?

回答by Sampson

A nice example of a plugin exists here. Enabled by nothing more than $('select').selectmenu();.

插件的一个很好的例子存在这里。仅由$('select').selectmenu();.