I have an javascript array that I update in each search to use for autocomplete. The data return from the server but the autocomplete does not work well.
HTML :