Autocompletos datos de validación seleccionada jQuery

$(function () {
    $("#auto").autocomplete({
        source: ['Afghanistan', 'Australia', 'Denmark', 'Sweden', 'France', 'Greece', 'Iraq'],
        change: function (event, ui) {
            if (!ui.item) {
                this.value = '';
            }
        }
    });
});
syeddeveloper