K
K
Klayn242015-10-10 21:00:59
PHP
Klayn24, 2015-10-10 21:00:59

Multiple input tags autocomplete?

There is an input:

<input name="addUsers" data-id="<?=$val['id_project']?>" id="tagsInputAutocomplete_<?=$val['id_project']?>" type="text" class="addUserProject" placeholder="<?=$task_views[18]?>">


It is necessary that an autocomplete be made for him. If it is single, then I have already implemented it, but it is necessary that tags that are loaded via ajax are inserted into this input. I’ve been trying for the second day, but I just managed to get drunk while doing this task (((I saw a lot of examples, but I couldn’t apply it to my own project (( help please))

If anything, this is what it is for: the user created the project and to it you need to add staff.In this input, he enters the name or username of the user, and I show it and he clicks on it, the tag actually appears.Then he again writes another username in the same input and clicks on it again and is added to the existing tag tag with a new name))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikiforov, 2015-10-10
@Klayn24

aehlke.github.io/tag-it
textextjs.com/manual/examples/autocomplete-with-ta...
And about a million other implementations. You can use ready-made, you can gut and see how it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question