开发者

jquery window.parent

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 wind开发者_C百科ow.

I tried:

 $window.parent.('#dropDownSpan').css('visibility', 'visible'); 

but that didnt work, any idea?


$('#dropDownSpan', window.parent.document).css('visibility', 'visible'); 


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜