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如何判断是否是数组

jQuery里面的toggle怎么用

jQuery怎么判断是否为数字

jQuery append()方法怎么用

html iframe标签怎么使用?html iframe标签的使用实例介绍

jQuery怎么选择以什么结尾的元素

bootstrap 5 alpha发布啦!不再依赖jQuery,放弃支持ie

jQuery怎么判断是否为数组

jQuery addclass不起作用怎么办

jQuery如何增加标签属性

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




打赏

取消

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

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

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

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

评论

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