Nested jQuery Selector Context?

Nested jQuery Selector Context?

Hey there,

I am using jQuery in a Firefox add-on. So I have to use the jQuery selector context to access the contentDocument:
  1. var elems = jQuery(".selectors", doc);
(doc = gBrowser.selectedBrowser.contentDocument) [Mozilla-specific]

That context is accessing the entire website markup, of course. But I'd like to specify the context even further. Is that possible?

Something like
  1. var elems = jQuery(".selectors", jQuery('#selector', doc ));
Or would there be a better way?

Regards,
Oliver


----------------------------------------------------
:|