I have a frame that’s nested in an iFrame. <iframe>..<frameset..><frame id="report">. I have a jQuery reference, myFrame, to the report frame. I don’t have control to the html. I am trying to modify an element in the frame. contents() doesn’t work with frames. I tried using a context like myFrame.document & myFrame.contentDocument but they give errors.
How do I reference the frame’s document or content using jQuery? Is a jQuery reference different than a javascript reference?
ADDITION:
EVERYTHING IS IN THE SAME DOMAIN. I know about the browser’s cross domain security block.
ADDITION2:
I had some html code in my original question and didn’t notice they got hidden.
This is the selector:
Although it doesn’t work every single time and I am still find out why.