SystemicPlural
SystemicPlural

Reputation: 5789

How do I update content in the parent window of the Iframe I am in with jQuery

If I am inside the contents of iframe_2 how do I change the text of header_2?

<h3 id="header_1"></h3>
<iframe id="iframe_1"></iframe>
<h3 id="header_2"></h3>
<iframe id="iframe_2"></iframe>
<h3 id="header_3"></h3>
<iframe id="iframe_3"></iframe>

Upvotes: 1

Views: 129

Answers (1)

SystemicPlural
SystemicPlural

Reputation: 5789

Worked it out.

$("h3#header2", parent.document).text("new text");

Upvotes: 3

Related Questions