5
$("#responsible").tokenInput(
[
{id: 7, name: "[email protected]"},
{id: 11, name: "[email protected]"},
{id: 13, name: "[email protected]"},
{id: 17, name: "[email protected]"},
{id: 19, name: "[email protected]"},
{id: 23, name: "[email protected]"},
{id: 29, name: "[email protected]"},
{id: 31, name: "[email protected]"}
],{
prePopulate: respArray,
hintText: "Enter mailid",
allowCustomEntry: true,
theme : "facebook",
noResultsText: "O noes",
searchingText: "Searching...",
minChars: 1,
tokenLimit: 1,
tokenValue: "name",
preventDuplicates: true
}
);
- 令牌輸入不工作的自定義項。一旦光標離開輸入,文本就會從輸入中消失。我怎麼解決這個問題。
對於https://github.com/loopj/jquery-tokeninput 1.6.1版本,請嘗試allowFreeTagging:true選項。 – Cindrella