Hi Emily,
This is one one to do it using jQuery:
$.each($('.photogalleryItem'), function() {
$(this).find('a').append($(this).find('img').attr('alt'));
});
So we iterate through each gallery item, finding the image alt value and appending it to that items anchor element.