Tell me, please, JQuery experts, because the soared for the third day in fruitless attempts:
1. use page two elements JQueryUI Autocomplete combobox here jqueryui.com/demos/autocomplete/#combobox
2. after selecting the item in the first combobox executes the ajax request, the data is safely come and I fill them the second combobox:
options += " + item + ";
$("#combobox option").remove(); // removed the old list, which there can be
3. and I want to programmatically select the first element of the newly formed list.
Nothing!!! Zero reaction to such code:
$("#combobox :first").attr("selected", "selected");
no different variations of it though for a normal HTML select it works great.