I'm using iframe on a popup window. And I want to hide a div by classname from iframe. This popup opens when user intend to exist.
My code:
<div class="lightbox">
<div class="box">
<iframe id="my_iframe" src="mydomain.com" style="width:500px; min-height:400px; height:auto;" frameborder="0"></iframe>
<p> <a href="#" class="close">X</a></p>
</div>
</div>
$('#my_iframe').ready(function(){
console.log('load the iframe')
var $poweredWrapper = $('#my_iframe').find("poweredWrapper");
$poweredWrapper.hide();
});
How can I hide div with this class poweredWrapper