开发者

JQuery Facebook like Tag feature

开发者 https://www.devze.com 2023-02-04 04:26 出处:网络
Does anyone know of a very basic tag JQuery script? (Facebook like tag feature) All I want to do is when I type @ in a text box for it to search an AJAX search, it then brings back a display name i.e

Does anyone know of a very basic tag JQuery script? (Facebook like tag feature)

All I want to do is when I type @ in a text box for it to search an AJAX search, it then brings back a display name i.e. "Bob Johnson" and an associated Id and stores the Id in a comma delimited list.

So an example would be the following ....

[TextArea] [Name 1] [Name 2] [Name 3]

The thing is it also needs to remove this entry (Id) once the tag gets removed, also it needs to load into a DIV which has a scrollbar 开发者_运维问答so that the list doesn't get to big.

If anyone know's how/if this is possible that would be great.

Thanks.


Edit: I'm pretty much done with jQuery UI Tagging. The source option works just like jQuery UI Autocomplete's so you can pass a function to it that return an Array or just pass an Array directly.

0

精彩评论

暂无评论...
验证码 换一张
取 消