在iframe子页面获取父页面元素
代码如下:

$('#objId', parent.document);

在父页面 获取iframe子页面的元素
代码如下:

$("#objid",document.frames('iframename').document)