jQuey autocomplete with JSON source?
I'm checking out the autocomplete plugin at
http://docs.jquery.com/UI/Autocomplete and REALLY like it. I'm pretty new to jQuery and absolutely a virgin with JSON, so I'm in need of a kick in the pants to get me rolling.
In the documentation at that site, I read that I can use a URL as source if it returns JSON data. Cool. Right now I have some other autocomplete plugin that stores the autocomplete data in a .js file like this:
- var terms = [
- "landfill",
- "GIS",
- "schools",
- "human resources",
- "health department",
- "animal shelter",
- "dog tags",
- "business license",
- "Sheriff",
- "marriage license",
- "ach",
- "animal control",
- "zoning",
- "Parks and Recreation",
- "decals",
- "sticker",
- "Board of Supervisors",
- "map",
- "tax map",
- "building permit",
- "Commissioner of the Revenue",
- "Treasurer",
- "Shawneeland",
- "Health Department website"
- ];
How could I do something like that with this plugin?
Thanks in advance!
Jeremy