Json autocomplete drop down no show?

Can figure how to show the drop down menu with possible results using jquery and json?

My sql =

foreach($sql as $key)
		$search_arr[] = array("name" => $key['s_name']);

echo json_encode($search_arr);


and JQuery:

		type: "POST",
		url: 'http://localhost/testsite/geolocation/',

		success: function(data){


I can see json data returned correctly here:


Why drop down menu is not showing please teach me how to.

Could it be due to that spelling mistake?


Opppsss that was it :wink: thanks

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.