[jQuery] scope change of jquery functions in popup window

[jQuery] scope change of jquery functions in popup window


Hi,
I want to use jquery functions in popup window which is opened using
window.open function. For this what i wrote command in popup window
is:
var $ = window.opener.jQuery;
now when i try to use xpath selectors to hide all spans which has name
attribute as "route" in popup, it actually hides the same spans in
parent window rather in child.
I run this:
$('span[@name=route]').hide();
My question is, is there anyway i can use jquery functions of parent
(without redownloading jquery file in popup window), and can access
selectors in child window?
--rafi