Reputation: 17269
How to have JQuery reference for popu window?
I have JS below:
chatPage = window.open( ... );
chatPage.document.getElementById('someid');
I tried below but didn't work:
$(chatPage).$('#someid');
Thanks
Upvotes: 0
Views: 407
Reputation: 219910
You have to provide chatPage
as a context:
$('#someid', chatPage);
Upvotes: 1