.attr('title', settings.transformer(settings.thumbnails[index].title)) settings.current = index; var title = $('#photo').attr("title") $("#title").text(title);