so. you need an autocomplete that will show you one object in a set of objects.

what you need, my friend, is the jQuery UI’s autocomplete.

https://jqueryui.com/autocomplete/#custom-data

 

by the way, this is the class to get rid of that ugly blue hover state for the dropdown:

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
background: none;
background-color: #6F257F;
border: none;}
Advertisements
so. you need an autocomplete that will show you one object in a set of objects.