Following getJSON works fine but I need to replace "presentations with a variable "getSlides" tried a lot of different ways with a variety of errors no matter what I've treid

var getSlides = $(this).attr("href");

$.getJSON("photoList.js",  function(slides){        
          $.each(slides.presentations, function(i,item){
            $("<img/>").attr("src", item.photo).appendTo("#slideshow");
            
          });
          ///do something
          
 });

Reply via email to