- // I also tried this
- // $arr = array("aaa", "aaa2", "aaa3");
- $arr = array(array('label' => "aaa", 'value'=> "aaa2"),
- array('label' => "aaa3", 'value'=> "aaa4"),
- );
- echo json_encode($arr);
The PHP seems to be working fine ($_GET["term"] is defined, its value is what I type in), the output of PHP is
[{"label":"aaa","value":"aaa2"},{"label":"aaa4","value":"aaa3"}] as expected. But the search hint box does not appear. What did I do wrong?