Luci javascript to provide editable result of pre-filled dropdown

Is there a trivial way to achieve this today?

I would like a dropdown that one can programmatically pre-fill with values, and when one clicks on a provided value, it pre-fills the text-field with editable text which the user can/must modify before clicking the green + to 'commit' the value. Similar to how the name search field looks in Google Maps. Perhaps also how autocomplete datalist works.

...
	o.value('the field will be filled with this user-editable text 1', _('option 1'));
	o.value('the field will be filled with this user-editable text 2', _('option 2'));
	o.value('the field will be filled with this user-editable text 3', _('option 3'));
...

preferably without a validate function with lots of if selection == .... I have looked through some sources and not seen anything quite like this.

Might @jow have some tips?