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 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输