jQuery Lightbox Clone is not initialising properly

Posted by Neurofluxation on Stack Overflow See other posts from Stack Overflow or by Neurofluxation
Published on 2010-06-02T08:21:44Z Indexed on 2010/06/02 8:23 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

Hey, I have the following function on an onClick call:

   function addComment() {
        jQuery.noConflict()
        jQuery('head').append('<link rel="stylesheet" media="screen" type="text/css" href="colorbox/colorbox-images.css" />'); //this doesn't add correctly.
        jQuery.fn.colorbox({inline:false, href:'boxes/add-comment.html'});
        return false;
    };

However, the STYLESHEET append line doesn't seem to initialise properly. Screenshots below: alt text

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html