Resolved: Use title of currently displayed image as mail subject


I use the Colorbox by Jack Moore to display several images. Now I want to integrate a mailto link after the title in the lightbox. This should give visitors the opportunity to request further information about the image currently displayed. So that the mail can later be assigned to an image, the title of the image currently displayed should be the subject of the mail. At the moment I can append a mailto link to the title with jQuery and “append”. However, I have not yet found a way to get the title of the image and to use it as the subject of the mail. My solution so far:
$(document).bind('cbox_complete', function(){
    $('#cboxTitle').append( "<a href=''>Get info</a>" );
Does anyone have any ideas?


I do not know colorbox, but I would expect
$(document).on('cbox_complete', function(e){
    .append(`<a href="${}">Get info</a>`);
or change ${} for
where you need to provide the selector for “.somecontainer”

If you have better answer, please add a comment about this, thank you!