How to save and highlight the selected value in the Autocomplete dropdown?

How to save and highlight the selected value in the Autocomplete dropdown?

I am able to pick any value in autocomplete drop down menu but next time when I click on the dropdown menu, it does not show the selected value from the first time. The dropdown always shows the options from starting. This can be a problem for users if anyone wants to see the selected option in the dropdown menu,

How to save and highlight the selected value in the Autocomplete dropdown?

Using thie autocomplete dropdown menu:  https://jqueryui.com/autocomplete/#combobox

Can anyone please suggest a solution?