且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有一个Jquery插件来替换select标签,该标签允许用户键入自己的选项?

更新时间:2022-04-08 21:53:27

您可能会使用jQueryUI的自动完成破解行为类似的东西,例如:

You could probably use jQueryUI's autocomplete to hack something up which behaves similarly, for example:

var fruits = ["apples", "oranges"];
$("input").autocomplete({
    source: fruits,
    minLength: 0
}).autocomplete("search", "");


Select preset from list or type something: <input type="text"/>

在这里玩.