JQuery window.parent

I can use it just fine in the window

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

but how can I use it in another window, which is a child of this window or can be opened by this window.

I tried:

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

but it didn’t work, any idea?

+5
source share
2 answers
$('#dropDownSpan', window.parent.document).css('visibility', 'visible'); 
+14
source

I had to interact with the parent page that opened the 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.

+1
source

All Articles