0

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!

1 Answer 1

1

I found this solution:

        $('#main-stuff').append('<div id="bgImgOverlay"></div>').css("cursor","pointer");
        $('#bgImgOverlay').click(function() {
            $("a[rel='gallery-all']").colorbox({open:true});
         });
1
  • 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, 2013 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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