views:

579

answers:

2

Just like in JavaScript:

opener.document.getElementByName 

jQuery: ??

Is there any way to get opener's element with jQuery?

+2  A: 
window.opener.$("[name=elementName]")

Replace elementName with the name of your element.

Tom
+3  A: 

If I understand you correctly, then you simply pass the opener as the second parameter in the jQuery function, like so:

var abc = $("[name=abc]", window.opener.document);

You may also reference the jQuery object directly from the opener, like so:

var abc = window.opener.jQuery("[name=abc]");
Bauer
thank you for specific answer
sunglim