在父窗口中操作 選中iframe中的id
$(window.frames["ifm"].document).find("#id").attr("value",$("#id").val());
在iframe中操作 選中父窗口中的所有單選鈕
$(window.parent.document).find("input[@type='radio']").attr("checked","true");
$("#父級某id",parent.document).trigger("click");//獲取iframe外層標簽元素,並自動觸發點擊事件
HTML
<iframe id="ifm" src="https://mee" frameborder="0" width="100%" height="100%" allowfullscreen="true" allowtransparency="true" scrolling="no"> </iframe>