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
The document focuses on the current document and not the . You need to go through its contents and find the elements before hiding them.
document
content
$('iframe').load(function() { $('iframe').contents().find('#leftpanel,#toppanel').hide(); });