JQuery Facebook as a tag feature

Does anyone know a very simple jquery script tag? (Facebook like tag function)

All I want to do is when I type @ in the AJAX search search text box, then it returns a return display name, such as β€œBob Johnson” and its associated identifier, and stores the identifier in a comma-separated list.

So, an example would be the following ....

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

You also need to delete this entry (Id) after deleting the tag, and also load it into a DIV with a scroll bar so that the list does not reach a large one.

If someone knows how / if it is possible, that would be great.

Thanks.

+4
source share
1 answer

Edit: I pretty much did jQuery UI Tagging . The source parameter works the same as jQuery UI Autocomplete autocomplete, so you can pass it a function that returns an Array or just passes Array directly.

+9
source

Source: https://habr.com/ru/post/1335144/


All Articles