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: 290
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:
© Stack Overflow or respective owner