[Object, Object]
0:Object
chat:"i like to say hello"
id:13
user_id:1
yiinput_id:5
__proto__:Object
1:Object
chat:"another chat here"
id:14
user_id:1
yiinput_id:5
__proto__:Object
length:2
__proto__:Array[0]
I am trying to populate a list with some information from a table. I have the above object and I am tying to get values like this:
$.each(resp.chats, function() {
$.each(this, function(k, v) {
console.log(k + ' ' + v);//this gets me all keys and values but i need specific key value
console.log("Chat ="+ //need chat value here );
console.log("User ID ="+ //need id value here );
});
});