[eluser]PhilTem[/eluser]
Your JSON-response probably looks like
Code:
{"offices" : ["Main office", "Chicago Office", "Philly Office"]}
though I guess it should just look like
Code:
["Main office", "Chicago Office", "Philly Office"]
Thus, you either return $office_array in your model or do a
Code:
echo json_encode($data['office']);
in your controller.
Hopefully this will fix your problem
If it won't I need to take a closer look at bootstrap's typeahead plugin
PS: I hope that you checked your returning result is actually correct (i.e. has the data it is supposed to have) and it's just a matter of displaying/formatting.
Try doing an
Code:
success: function(data) {
alert(data);
}
to ensure your data are correct/available as it's supposed to be.