When using the jquery ui autocomplete combobox, can you set a default value for the combobox?
function setAutoCompleteCombo(id,value,display) {
if($(id+"[value="+value+"]").text().localeCompare("")==0){
$("<option value='"+value+"'>"+display+"</option>").appendTo($(id));
}
$(id).val(value);
$(id).next().val($(id+" :selected").text());
}
I solved it by calling this function on the initial page or runtime. Example:
setAutoCompleteCombo('#frmData select#select_id',option_value,option_text);
add method to jquery combobox script
setValue: function(o) {
$(this.element).val(o);
$(this.input).val($(this.element).find("option:selected").text());
}