The default behavior of the jqueryui autocomplete is the input field to be empty and to start listing data when the user starts typing(Even the minLength is set to 0). I want all the data to be listed as a dropdown in the beginning so the user can see all the available options. Is that possible
js file
$("#unique_code").autocomplete({
source : "php/autocomplete_getunique_code.php",
minLength: 0,
select: function( event, ui ) {
}
});
Im echoing all available data in autocomplete_getunique_code.php, but it works after start typing only. how can i achieve it, that show all available result when focusing