html - Safari - Adding content in iframe with javascript CSS issue -
i'm adding html in iframe:
<div class="parentclass"> <div class="classchild1">block 1 content</div> <div class="classchild2">block 2 content</div> <div>
my classchild1
has no css rules defined (but should) , refuses triggered in javascript. tried to:
console.log(myiframecontent.find('.classchild1')); // output 0
when directly change element dom , add class, css , works fine. since can't find javascript can't manipulate block.
everything working fine classchild2
css defined same .css , got no problem in chrome/ie/firefox.
thanks suggestions
Comments
Post a Comment