I have a result set that when I use json_encode() in php, returns the following
[
{"id":"1","name:","value"},
{"id":"2","name:","value"},
{"id":"3","name:","value"},
{"id":"4","name:","value"}
]
I'm then using jQuery to try and loop through this:
$.each(data, function(index, itemData){
alert(itemData.id);
}
The problem is it's only getting the first record (id: 1).
Am I doing something wrong?