I am using jQuery .contents() method to change class under iframe but it is not wokring. When i am giving direct in iframe source then it is working fine but when i generating path it is not working
$('.viewMe').click(function (){
var url= 'viewpage.html'
$('#myframe').attr('src',url).animate({height:1000},1000,
function (){$('.Close').fadeIn(1500)});
$('body').height($(window).height()).css('overflow','hidden');
var $c = $('#myframe').contents();
$c.find('.inner-wp').css('margin','0')
});
You have to call it on iframe
loadevent like this: