lichdb 发表于 2013-2-7 20:59:44

jquery iframe

1.在父窗口中操作 選中IFRAME中的所有單選鈕

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



2.在IFRAME中操作 選中父窗口中的所有單選鈕

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



iframe框架的:<iframe src="test.html" id="iframe1" width="700" height="300" frameborder="0" scrolling="auto"></iframe>




<div class="UBBPanel"><div class="UBBTitle">http://www.agoit.com/bbs/images/code.gif 程序代码
页: [1]
查看完整版本: jquery iframe