You can use an event select, for example @bfavaretto , but I think that in this situation it is more convenient to use an event change:
$("#auto").autocomplete({
source: ['hi', 'bye', 'foo', 'bar'],
change: function(event, ui) {
if (ui.item) {
$("span").text(ui.item.value);
} else {
$("span").text("user picked new value");
}
}
});
Example: http://jsfiddle.net/andrewwhitaker/3FX2n/
changeit works when the field is blurry, but unlike the native event, changeyou get information about whether the user clicked the event or not ( ui.itemnull if the user did not click the sentence).