JR Galia
JR Galia

Reputation: 17269

JQuery Reference for Popup Window

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

Answers (1)

Joseph Silber
Joseph Silber

Reputation: 219910

You have to provide chatPage as a context:

$('#someid', chatPage);

Upvotes: 1

Related Questions