gpt4 book ai didi

javascript - 自定义输入在 jQuery token 输入插件中不起作用

转载 作者:搜寻专家 更新时间:2023-11-01 04:26:03 24 4
gpt4 key购买 nike

$("#responsible").tokenInput(
[
{id: 7, name: "a@gmail.com"},
{id: 11, name: "b@gmail.com"},
{id: 13, name: "c@gmail.com"},
{id: 17, name: "d@gmail.com"},
{id: 19, name: "e@yahoo.com"},
{id: 23, name: "f@gmail.com"},
{id: 29, name: "abc@gmail.com"},
{id: 31, name: "ab@gmail.com"}
],{
prePopulate: respArray,
hintText: "Enter mailid",
allowCustomEntry: true,
theme : "facebook",
noResultsText: "O noes",
searchingText: "Searching...",
minChars: 1,
tokenLimit: 1,
tokenValue: "name",
preventDuplicates: true
}
);
  1. token 输入不适用于自定义条目。一旦光标离开输入,文本就会从输入中消失。我该如何解决这个问题。

最佳答案

与@Cindrella一起测试:

$("#responsible").tokenInput(
[
{id: 7, name: "a@gmail.com"},
{id: 11, name: "b@gmail.com"},
{id: 13, name: "c@gmail.com"},
{id: 17, name: "d@gmail.com"},
{id: 19, name: "e@yahoo.com"},
{id: 23, name: "f@gmail.com"},
{id: 29, name: "abc@gmail.com"},
{id: 31, name: "ab@gmail.com"}
],{
prePopulate: respArray,
hintText: "Enter mailid",
allowCustomEntry: true,
theme : "facebook",
noResultsText: "O noes",
searchingText: "Searching...",
minChars: 1,
tokenLimit: 1,
tokenValue: "name",
allowFreeTagging: false, // !ADD THIS !
preventDuplicates: true
}
);

关于javascript - 自定义输入在 jQuery token 输入插件中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17233301/

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