First of all, in โnormalโ autocomplete, you will get the value of the selected item by executing ui.item.value . In your case, this does not work. Perhaps because the select function becomes overridden.
Instead, report the value in your autoCompleteSelect function.
this._on(this.input, { autocompleteselect: function (event, ui) { alert(ui.item.value); ui.item.option.selected = true; this._trigger("select", event, { item: ui.item.option }); }
If you are interested in what other parameters you could get in this function, just execute console.log(ui) in it and open the console to see other parameters. In general, you donโt even need to call the autocomplete widget anymore.
Updated script
source share