jquery 操作iframe

一.在父窗口中操作 IFRAME

1.在父窗口中操作 选中IFRAME的所有单选钮 

$(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");

2.在父窗口中操作 选中IFRAME的id

$(window.frames["iframe2"].document).find("#x_orgname").attr("value",$("#x_orgname").val());

二.在IFRAME中操作 选中父窗口中的所有单选钮 

1.在IFRAME中操作 选中父窗口中的所有单选钮 

$(window.parent.document).find("input[@type='radio']").attr("checked","true"); 

2.在父窗口中操作 选中IFRAME的id

$(window.parent.document).find("#x_orgname").attr("value",$("#x_orgname").val());