1. 在父窗口中操作 选中IFRAME中的所有单选钮
$(window.frames[“iframe1”].document).find(“input:radio”).attr(“checked”,”true”);
2. 在IFRAME中操作 选中父窗口中的所有单选钮
$(window.parent.document).find(“input:radio”).attr(“checked”,”true”);
父窗口想获得IFrame中的Iframe,就再加一个frames子级就行了,如:
$(window.frames[“iframe1”].frames[“iframe2”].document).find(“input:radio”).attr(“checked”,”true”);
希望本文所述对大家jQuery程序设计有所帮助。










