jquery window.parent
我可以在一个窗口中很好地使用它
$('#dropDownSpan').css('visibility', 'visible');
,但是如何在另一个窗口中使用它,该窗口是该窗口的子窗口,或者可以由该窗口打开。
我尝试过:
$window.parent.('#dropDownSpan').css('visibility', 'visible');
但这不起作用,有什么想法吗?
I can use this just fine in a window
$('#dropDownSpan').css('visibility', 'visible');
but how can I use it in another window which is child of this window or may be opened by this window.
I tried:
$window.parent.('#dropDownSpan').css('visibility', 'visible');
but that didnt work, any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我必须与打开了我创建的tinymce弹出窗口的父页面进行交互,我需要使用这个:
group = $('#edit-og-groups', window.opener.document).val( );
我对
window.parent.document
没有运气。I had to interact with the parent page which had opened up a tinymce popup that I created and I needed to use this:
group = $('#edit-og-groups', window.opener.document).val();
I had no luck with
window.parent.document
.