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
}
);
- Đầu vào mã thông báo không hoạt động cho mục nhập tùy chỉnh. Ngay khi con trỏ ra khỏi đầu vào, văn bản sẽ biến mất khỏi đầu vào. Làm thế nào tôi có thể giải quyết vấn đề này.
Đối với https://github.com/loopj/jquery-tokeninput 1.6.1 versio, hãy thử allowFreeTagging: true option. – Cindrella