Good day. Tell me who knows. There is a code
$(document).ready(function(){ $( "#test" ).autocomplete({ source: function(request, response){ $.ajax({ url: 'http://engine.hotellook.com/api/v2/lookup.json?lang=ru&lookFor=hotel&limit=5', data:{ query: request.term }, dataType: "json", success: function(data) { response($.map(data, function(v){ var text = v.locationName; return text; })); } }); }, minLength: 2 }); }); Jquery and jquery ui are connected but for some reason this code does not work.