I'm using the ui autocomplete: over here
I need the autocomplete to be open at all times, so it shouldn't close when somewhere in the body is clicked. I have googled this but I couldn't find anything.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With