I am trying to look through this:
[
{"leadID":"1","leadName":"Steve"},
{"leadID":"2","leadName":"Bob"},
{"leadID":"3","leadName":"Bill"},
{"leadID":"4","leadName":"Jim"},
{"leadID":"5","leadName":"James"},
{"leadID":"6","leadName":"John"},
{"leadID":"7","leadName":"Eric"},
{"leadID":"8","leadName":"Tony"},
{"leadID":"9","leadName":"Jason"},
{"leadID":"10","leadName":"Paul"}
]
I am trying to do it using the $.each but I cannot get it right. Here was a test to the console:
$.each(JSON, function(k, v) {
console.log(v[0]);
});
I am sure I am just not parsing the JSON right but I cannot figure it out. Ultimately I need to append the data to the options of a select input.
Any help on this would be great.
Thanks!