hey guys, simple and annoying question for you, but i need the answer rather quick and i couldn't find a solution.
$('.gallery-item .gallery-icon a').each(function(){
$('.gallery-caption').prepend("<span class='imgtitle'>"+$(this).attr("title")+"</span>")
});
every gallery-item has a gallery-caption underneath it. i'm iterating through every gallery-icon and find the title of the link. i want to prepend the title to every gallery-item-caption.
Right now, every image-caption get ALL image-titles prepended. I just want to prepend the title of the current image.
?