This is my data source in JSON format:
{
"list-1":
[{"id":"1","value":"andy"},{"id":"2","value":"sandy"}],
"list-2":
[{"id":"1","value":"candy"},{"id":"2","value":"brandy"}],
"list-3":
[{"id":"1","value":"mandy"},{"id":"2","value":"dandy"}]
}
And I'm trying to get following output:
<div id="result">
<ul class="list-1">
<li>andy</li>
<li>sandy</li>
</ul>
<ul class="list-2">
<li>candy</li>
<li>brandy</li>
</ul>
<ul class="list-3">
<li>mandy</li>
<li>dandy</li>
</ul>
</div>
The default data source (JSON format) which works is as follow: [{"id":"1"},{"foo":"bar"}], I haven't been able to find a good/easy to follow documentation/tutorials on how to retrieve multidimensional data arrays.
Can anyone please shed some light for me on this, what do I need to modify/override within JQuery AutoComplete plug-in to achieve this output (within Select or Success event? or should I modify the rendering part and how)
Thanks in advance
`and so on At the end you'll end up with an extra empty UL which you can hide. – Nick Germi Jun 26 '13 at 03:39