There is combobox with autocomplete enabled. How to pass JSON data as source for this combobox?
Upd. I've found partial answer here - it allows me to use remote data source (original var input = this.input = $( "<input>" ).autocomplete({ source is replaced with remote source). But I can not choose the value - looks like the problem is with the following code (it allows to choose values from the select options (which I don't have).
select: function( event, ui ) {
ui.item.option.selected = true;
self._trigger( "selected", event, {
item: ui.item.option
});
},
How to fix that?
Here is the demo.