gpt4 book ai didi

javascript - Jquery 自定义选择/组合框

转载 作者:行者123 更新时间:2023-11-30 13:37:42 24 4
gpt4 key购买 nike

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

最佳答案

您可以使用 jQuery Editable Combobox plugin为此。

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.

关于javascript - Jquery 自定义选择/组合框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3990697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com