Closed Rafaelmignoni closed 11 years ago
Not gets results with the typed word.
If I use it this way this ok, the results(United Arab Emirates", "United Kingdom", "United States) will be refined.
Ex: if i type "emi" will get just "United Arab Emirates"
$(document).ready(function() { var suggestions = ["United Arab Emirates", "United Kingdom", "United States"];
$('#autocomplete-ajax').autocomplete( { lookup: suggestions });
});
but if i use in this way, the result is not refined.
{ "suggestions": [ "chevrolet", "ford", "hyundai",....
Ex: if i type "yun" will get all the results(cehvrolet,ford,hyundai,...), but hyundai will be "yun" in bold
$(document).ready(function() {
$('#autocomplete-ajax').autocomplete( { serviceUrl: 'data.php', dataType: 'json' });
Your question is all messed up. If you don't know how to use the plugin ask on http://stackoverflow.com/ . This is not a forum.
Not gets results with the typed word.
If I use it this way this ok, the results(United Arab Emirates", "United Kingdom", "United States) will be refined.
Ex: if i type "emi" will get just "United Arab Emirates"
$(document).ready(function() { var suggestions = ["United Arab Emirates", "United Kingdom", "United States"];
});
but if i use in this way, the result is not refined.
{ "suggestions": [ "chevrolet", "ford", "hyundai",....
Ex: if i type "yun" will get all the results(cehvrolet,ford,hyundai,...), but hyundai will be "yun" in bold
$(document).ready(function() {
});