Remove duplicates from source (table request) in input text with multiple values ...
Hi all,
I have an input field and the user can add multiple values coming from a source like a table or a JSON array.
If the user has already entered a value, I would like that this value does not appear anymore in the list returned by the source.
You can find a screenshot in attachment.
As you can see in this example, I would like to add the "PIZZA" value. Once this value is added, I don't want that the "PIZZA" value appears again in the list.
Must I change something in the jQuery UI plugin or in another plugin ?
Is it only a parameter when I call the "autocomplete" method of the jQuery UI or jQuery plugin ?
I have a second question about the values displayed in the combo box. In my cas, I display a concatenation of three values separated by the character '|'. These values are name, id and street of the user. How can I do to show on the combo box only the name and hide the id and street fields ?
Thanks for your help.
Kind regards,
Thierry