douduan6731 2011-10-27 15:06 采纳率: 0%
浏览 40
已采纳

如何使用在一个文本框中具有多个标记的jquery来执行文本框列表

I have a list of tags that are stored in the database. When a user starts a topic, he can enter the 3 tags, just like stackoverflow. I want to create a texbox list like how stackoverflow has done it. th When the tag is new which is not stored in the database, i won't show the auto suggest but accept the tag. But when the tag is not new which is already in the database, i want to show the auto-suggest and when the user clicks the auto-suggest, the textbox is filled with the tag.

I want the tags to be separated by comma where when the user enter the comma, the tag is displayed in the textbox just like stackoverflow.

Anyone has any idea how can i do this? I tried researching in the net but there are scripts that need to be bought which i can't afford.

Do you have a better suggestion? I just need to enter multiple tags maximum 3 tags in the one textbox.

  • 写回答

1条回答 默认 最新

  • dongxinjun3944 2011-10-27 15:11
    关注

    take a look at tag-it . It's hard to find a production ready scripts that can full-fill all your needs. This script can aid you al lot. The rest you need to modify/edit accordingly to your need.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器