$('div.photos__column div') return an array with all elements with this pattern "div.photos__column div" but whene you call a function like text() , the function text use only the firest rsult of array
if you want to do an operation on all selected element , can you use :
$('div.photos__column div').each(function( index ) {
console.log( index + ": " + $( this ).attr("src") );
});
or if you want to select element by index , you can call element by hir index for example : $('div.photos__column div')[2]
can you use this query to get all img source from the home page :
var allimegs = document.querySelectorAll(".photo-item__img");
var newsrc = [] ;for(var i = 0;i<allimegs.length;i++){
newsrc[i] = allimegs[i].getAttribute("src");
}