Response title
This is preview!
I am willing to go with any suggestion that you see fitting. But I will need help getting there.Do you want to change your data (in your static file or PHP code) to double-quotes (best), or use $.get() to get it as raw text, change the quotes with Javascript code, and then parse the JSON?
Okay I am not explaining myself properly. Let me start from the beginning.
The output to the json encode is standard with double quotes.
The bootstrap template I am using in the typeahead data file uses a hard-coded array of items that I posted the structure of. The hard-coded array uses single quotes.
I would like to use jquery to populate the array in the typeahead js file.
That is pretty much it.
© 2013 jQuery Foundation
Sponsored by and others.