I’m trying to trigger autocomplete list on focus or click event. This solution helps, but when i click input field second time, nothing happens: list doesn’t appear.
$('input').autocomplete({
source: ["1","2"],
minLength: 0
}).focus(function(){
$(this).trigger('keydown.autocomplete');
});
i tried this variant – no good
$(this).keydown();
this line works well in same place:
$(this).attr('value,new Date());
p.s. jQuery UI 1.8.16, jQuery v1.7.1
You could use