The autocomplete search box suggest data options to the user based on its input.
From there, it can select the option.
In the demonstration, I am creating a search box and display suggestion list whenever the user input value in the search box. If a user clicks outside the suggestion list then hide it.
Set a selected value to search box when an option gets selected.
I am using PHP with AngularJS to fetch records.