I'm trying to write a jQuery UI autocomplete by reading an external file (i.e. data.json).
The code works fine when I try to read it from an array but if I try to read it from an external file, it doesn't work anymore!?! Not sure why!!
Here's my code: