jQuery自定义选择/组合框 [英] Jquery custom select/combobox

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

问题描述

我正在使用jQuery;我有一个选择框,其选项是从json对象填充的.但是因为数据库可能不完整,所以我想为用户提供输入自定义值的能力.我一直在研究的大多数组合框解决方案都是以一种或另一种方式发生故障.在这种情况下有哪些替代解决方案?

I am using jQuery; I have a select box the options of which are populated from a json object. But because the database is potentially incomplete, I would like to offer the user the ablity to enter a custom value. Most combobox solutions, I have been looking at are malfunctioning one way or the other. What are alternative solutions in this case?

推荐答案

您可以使用 jQuery可编辑组合框插件.

jQuery Editable Combobox是一个jQuery 可以让您变形的功能 任何标签变为可编辑 组合框.

jQuery Editable Combobox is a jQuery function that allows you to transform any tag into editable combobox.

这是通过添加新的 携带输入值的元素 键盘.这仅适用于 选择元素.任何其他要素 此功能将应用于 被忽略.

This is done by adding a new element to carry the value entered by the keyboard. This will only work on select elements. Any other elements this function will be applied to will be ignored.

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

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