gpt4 book ai didi

javascript - 将hintText替换为预定义列表

转载 作者:行者123 更新时间:2023-12-02 19:55:44 24 4
gpt4 key购买 nike

我正在使用 jQuery Tokeninput 开展一个项目。该插件的描述如下:

Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item.

在此处查看工作版本:http://jsfiddle.net/WGmrr/

有没有一种方法可以在用户单击输入框后但在用户开始键入之前显示整个预定义列表,从而有效地替换读取键入搜索词<的hintText/

最佳答案

您可以在这里使用完全不同的用户体验方法并使用 Harvest 的 Chosen插件,使用多选:

Chosen screenshot

它看起来很棒,运行良好,并且可以在不同的上下文中重复使用。

关于javascript - 将hintText替换为预定义列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8648473/

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