I'm trying to add a class to a div, which is in an iframe, plus the Fancybox iframe. After trying for hours, I can't get it to work. The console log test prints out, so I'm not sure what I'm doing wrong. It's Fancybox version 1.3.4.
jQuery( ".lightbox" ).fancybox( {
'width' : '100%',
'height' : '90%',
'transitionIn' : 'none',
'transitionOut': 'none',
'type' : 'iframe',
onComplete: function() {
jQuery('#fancybox-frame' ).contents().find('#right_container').addClass('test123');
jQuery('#right_container').addClass('test321');
console.log('test');
}
Here's the page: http://www.rescue3international.com/onlinetraining.php
Any help would be appreciated. Thanks!