When using the jquery ui autocomplete combobox, can you set a default value for the combobox?
Answer #1 is very close, but you cannot hard-code the element ID if you want to keep the function generic. Add this line instead and enjoy!
input.val(jQuery("#"+select.attr("id")+" :selected").text() );