I\'m using jQuery\'s autocomplete in a relatively simple way:
$(document).ready(function() {
var data = [ {text: \"Choice 1\"},
{text: \"Ch
$j(".auto_complete").focus(function() { $j(this).keydown(); })
When input value is empty search else the value inside input. This code works for me:
$("#your_input").on('focus', function () {
$(this).autocomplete('search', $(this).val() == '' ? " " : $(this).val());
});
you can use this:
$("#example").autocomplete( "search", $("#input").val() );
You can also use search function without parameters:
jQuery("#id").autocomplete("search", "");