Just like in JavaScript:
opener.document.getElementByName
jQuery: ??
Is there any way to get opener
's element with jQuery?
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]");
window.opener.$("[name=elementName]")
Replace elementName
with the name of your element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With