jQuery accessing objects
- by user1275268
I'm trying to access the values of an object from a function I created with a callback, but have run into some trouble. I'm still fairly new at jQuery/javascript.
I call the function as follows:
siteDeps(id,function(data){
$.each(data,function(key,val) {
console.log(key);
console.log(val);
});
});
The function runs 5…