Fancybox onComplete function not running
问题 For some reason it's just not running the onComplete function. It does however load the fancybox div. My html: <ul> <li class="orange"> #1 <a href="#text">click here</a> <div id="text" class="text">text text text</div> </li> </ul> My jquery: jQuery('li a').fancybox({ 'autoDimensions': 'false', 'width' : 631, 'height': 256, 'onComplete':function(){ alert('running'); jQuery('.fancybox-skin').css('background-color',colour); } }); the alert doesn't run. I've also tried changing the event function