On Friday, June 1, 2012 2:15:18 PM UTC-4, Joseph Fusco wrote: > > Follow up question to this, and it is probably very basic, I just can't >> get the syntax correct. My code currently looks like this: > > > $("#typeahead").typeahead({ > var items = ['YouTube', 'Google', 'Facebook']; > source: items > }); >
The stuff inside the { } is defining an object. So something like: var items = ['YouTube', 'Google', 'Facebook']; $("#typeahead").typeahead({ source: items }); is likely whet you need.