SO jQuery Fiddle

Test Fiddle mainly for SO Questions jQuery 1.4.3, UI 1.8.5

by Nick Craver

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/ui-lightness/jquery-ui.css">
<input type="text" id="empf" />

JavaScript

var colors;

$(document).ready(function(){
        loadColors();
    $('#empf').autocomplete({ source: colors });
});

function loadColors(){
 colors = ["test", "testA", "testB"];
}

var i =1;

setInterval(function () {
    colors.push("test" + i++);
    $('#empf').autocomplete("option", { source: colors });
}, 1000);