I’ve been experimenting with some iframe-manipulation with jQuery, but this was not as easy as I have hoped for. There is not much help on jquery.com and a Google search just found others with the same kind of problem.
My setup is very basic. An iframe loading a page like this
<iframe name="framename" id="myframe" src="mypage.html"></iframe>
In the page where this iframe is being loaded, I have included the jquery.min.js and an extra .js-file for my code.
First attempt was to try the examples found on Google. For testing purposes I wanted to set a red background color on every <div> inside the iframe.
var frame…
read on