I retrieve a list of pairs from a JSON document. I can retrieve each pair through
$.each(result,function(key,value)
{
alert(key+" "+value);
}
but for certain cases, I would like to retrieve only each value, put it in an array so I can add it to an autocomplete function :
$("#myTextField").autocomplete({source:listOfValues});
But I cannot find how to construct the object "listOfValues".
I have almost no experiences in JQuery and JSON. (That's why I assume, my question is quite simple, but I cannot find the solution)