This is driving me slightly crazy.
I am proficient in getting a single Ajax request / autocomplete.
However, now I am trying get a multi-column result working. I am combining: Autocomplete Remote and Custom Display. from the JQuery autocomplete examples.
The json_encoded array returns a string looks like:
a)
[
{"value":"myvalue1","label":"mylabel1","desc":"mydescription1"},
{"value":"myvalue2","label":"mylabel2","desc":"mydescription2"}
]
The Autocomplete remote shows a different formatting. Should it be:
b)
[
{value:"myvalue1",label:"mylabel1",desc:"mydescription1"},
{value:"myvalue2",label:"mylabel2",desc:"mydescription2"}
]
Which is the correct format - a or b? I am hoping "a", because it requires less code.
Thanks!