Select elements in the iframe from the parent page:
$( '#btnCancel',$('#PopFrame')[0].contentWindow.document)
Select elements in the parent page from the iframe page:
$("#PopContainer",parent.document)
The following is the solution from other netizens:
It had to be implemented by combining the DOM method and the jquery method
1. Select all the radio buttons in the IFRAME in the parent window
$(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");
2. In IFRAME Select all radio buttons in the parent window
$(window.parent.document).find("input[@type='radio']").attr("checked","true");
iframe:
Test passed in IE7
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn