jquery如何获取iframe


当前第2页 返回上一页

获取iframe内的dom对象有两种方法

  • $(window.frames["iframeChild"].document).find("#child")

  • $("#child",window.frames["iframeChild"].document)

1.在父窗口中操作 选中IFRAME中的所有单选按钮

1

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

2.在IFRAME中操作 选中父窗口中的所有单选按钮

1

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

相关免费学习推荐:javascript(视频)

以上就是jquery如何获取iframe的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

jQuery怎么删除css样式

jQuery中size()与length的区别是什么?

什么是jQuery插件

jQuery怎么输出html代码

如何解决jQuery无法加载问题

jQuery绑定事件有几种方式?

jQuery中on()和live()的区别是什么?

jQuery怎么去除css属性

jQuery如何判断是否点击按钮

jQuery中怎么格式化时间

更多相关阅读请进入《jQuery》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...