天天看点

jquery iframe[转]

在iframe子页面获取父页面元素

代码如下:

js代码

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

在父页面 获取iframe子页面的元素

$("#objid",document.frames[0].document) 

from:http://hi.baidu.com/eyescode/blog/item/81ba20ebd68d4b34b90e2d20.html 

欢迎加群互相学习,共同进步。qq群:ios: 58099570 | android: 330987132 | go:217696290 | python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/archive/2010/03/09/1681928.html

继续阅读