I need to do exactly the same as requested in this post , get Json data and return in a specific field. User Jeffson Silva did exactly what I needed and made available on this Example .
I just ran into the following problem: I can not fetch the data in an external Json for "var data = []."
I tried to use "$.getJSON("dados.json", function (data) {..."
But it does not work to get this data.
When the array data is manually placed inside "var dados = []"
, it works but when it tries to fetch that data it is not working.
Can someone give me a light and show me how to do this using this code Example ?
Thanks in advance