$('#codepostal').autocomplete({
source: postalcodes,
minLength: 2,
focus: function(event, ui) {
$(this).val(ui.item.value);
return false;
}
})
.data("autocomplete")._renderItem = function(ul, item) {
return $("<li></li>")
.data("item.autocomplete", item)
.append("<a>" + item.value + " - " + item.label + "</a>")
.appendTo(ul);
};