1
我有这样的结构:访问内容
<body>
<iframe name="here">
<iframe name="other">
</body>
iframe的身体“其他”是:
<div id="content">foo</div>
我如何可以访问的内容“等”从“这里”?
我想这改变内容:
$('#other',top.document).contents().find("#content").html("bar");
但这不起作用
最后我设法解决这个问题没有jQuery的:
top.frames['other].document.getElementById("content").innerHTML="bar"
但如何用jquery解决这个问题仍然很有趣。