Autocomplete function after use selection

Autocomplete function after use selection

I know there are many versions of autocomplete out there, but i really want to use a function when a user selects a value from the autocompete list.

Can anyone make it clear, cause none of what I found till now work.

Thanks in advance.