I have the following code:
<iframe>
<div id="inner_div">
Here's some text!
</div>
</iframe>
I know that if I had an id on the iframe, I could follow the steps here to get an accessor to "#inner_div" and I could just set the height/width from there.
I also know that I could use a tag selector as stated here if I don't have a parent id.
But the problem with the second method is that when I call
$('iframe')[0]
in my code, it returns an HTMLIFrameElement, which isn't a jQuery object (so I can't use .find or any other jQuery magic on it). I've also tried wrapping that in text and passing it to the jQuery object to re-parse it as a DOM element, but that doesn't work either.
So is there any way to still get jQuery goodness to run on the inside of the iFrame?