The ajax call returns a json object like this:
Object {0: "1", 1: "jake", 2: "#00ff00", tip_id: "1", tip_details: "jake", tip_color: "#00ff00"}
Object {0: "2", 1: "jakee", 2: "#00ff00", tip_id: "2", tip_details: "jakee", tip_color: "#00ff00"}
Object {0: "3", 1: "jakeee", 2: "#00ff00", tip_id: "3", tip_details: "jakeee", tip_color: "#00ff00"}
This is how i try to acces some values:
for(var i=0;i<=response.length-1;i++){
console.log(response[i][1]); //the result should be: jake,jakee,jakee
}
I also tried:
for(var i=0;i<=response.length-1;i++){
console.log(response[i].tip_details); //the result should be: jake,jakee,jakee
}
I just can't get them,and i dont know why,am i missing something?