[jQuery] Problem Using find() with foreign html

[jQuery] Problem Using find() with foreign html


I am loading an external html file and selecting portions of it using
jQuery to be able to insert portions into the primary html document. I
basically want to use sections of an external html file as a template.
The problem I am encountering is with finding elements contained
within html > body. When I call find("#some-id") which is contained
within html > body of this external html jquery, the size always
returns as zero. If I next this same element within div or span tags
(instead of html > body), I am able to find it just fine.
My goal is to be able to use a pure and loadable html file as a
template and extract sections of it. Any ideas?
Thanks,
Philip Weaver