jQuery plugin for a simple input box for comma-separated tags with autosuggest

折月煮酒 提交于 2019-12-03 17:24:29

问题


I'm searching for a jQuery plugin with following functionality:

  1. It should display an input box, in which tags would be put in like so: 'bees, beads, beards'.
  2. When a user is typing a tag, it should display an autosuggest box for the user's input.
  3. The display should be plain and simple: just plain-text comma-separated tags.
  4. It should allow tags containing spacebar (e.g. 'funny cats').
  5. Comma symbol should be used for separation, not keystroke for ',', because some non-English keyboard layouts have commas assigned to other keys.

Is there such a plugin and if so, where can I find it?


回答1:


There is Chosen, which pretty much does everything you want.

Check out the "Multiple Select" feature on their site.




回答2:


jQuery Tokeninput seems to fit your demands.



来源:https://stackoverflow.com/questions/8260359/jquery-plugin-for-a-simple-input-box-for-comma-separated-tags-with-autosuggest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!