<inputid="autocomplete"/> <inputid="submit"type="submit"/>
var source = ['One', 'Two', 'Three', 'Four'];
var firstVal = source[0];
$("input#autocomplete").autocomplete({
minLength: 0,
source: source
}).focus(function() {
$(this).autocomplete("search", "");
});