I have a very simple code. I like to hide some DIV\'s in my IFRAMe. So my index.html page looks like this, so the whole idea is hide the top and the leftpanel of from the Ca
You can try this:
$('#iframeID').load(function(){
$('#iframeID').contents().find('#leftpanel').hide();
$('#iframeID').contents().find('#toppanel').hide();
});
Or:
$(document).ready(function(){
$('#iframeID').contents().find('#leftpanel').hide();
$('#iframeID').contents().find('#toppanel').hide();
});
This method is not possible if you want to work with different domains.