Hey sorry for the late response!
I feel this is a lot cleaner than keeping focus on the input and searching multiple times.
Try this...
JAVASCRIPT:
$( "#input1" ).autocomplete({
source: availableTags,
close : function (event, ui) {
if (!$("ul.ui-autocomplete").is(":visible")) {
$("ul.ui-autocomplete").show();
}
}
});
DEMO:
http://jsfiddle.net/dirtyd77/AJtvJ/
Hope this helps!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…