The jQuery:
$("[type=text]").autocomplete({
source: "json.php",
minLength: 0
}).addClass("ui-widget ui-widget-content ui-corner-left");
Works fine if I change the source: to a JS array. I know that the php is working because I can see it in the console, but here is the sample php anyways:
$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);
echo json_encode($arr);
So the dropdown just isn't displaying. Feeling pretty stupid right about now.
echo "['opt1','opt2','opt3','opt4']";from the php page, it doesn't do anything. I've also tried adding dataType: "json", to the options and nothing.