I would like to figure out what im doing wrong as i do not get any results when click the button:
$(document).ready(function(){
$("button").click(function(){
$("#instagramPics").append("<div>Button Clicked</div>");
$.getJSON( url, function(data){
$.each(data.data, function(key,item){
$.each(item, function(subKey, subitem){
var value= ( typeof subitem=='string')? subitem : subitem.length;
$('body').append('<div>'+subKey+' : '+value +'</div>');
});
});
});
});
});
Regards.