I need to clone a colorbox image link (the first of all colorbox links on the loaded page) and add it onto a div-tag. how could I do that with javascript/jquery? thnx!


I found this solution:

        $('#main-stuff').append('<div id="bgImgOverlay"></div>').css("cursor","pointer");
        $('#bgImgOverlay').click(function() {
  • This does not clone a link, so either the question is not clear on what you want or this answer is not correct.
    – rooby
    Apr 21 '13 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.