Im having troubles trying to get the autocomplete to work properly.
It all looks ok to me but....
Just would like to add that instead of referencing input element by "id" inside select and focus callback functions you can use this selector, like:
$(this).val(ui.item.label);
it's useful when you assign autocomplete for multiple elements, i.e. by class:
$(".className").autocomplete({
...
focus: function(event, ui) {
event.preventDefault();
$(this).val(ui.item.label);
}
});