[jQuery] load contents of body tag from a remote html file...

[jQuery] load contents of body tag from a remote html file...


How would I go about loading only the contents between the body tag of
a remote html file?
I have tried adding a css ID to the body tag like so:
$("#header").load("templates/index.html #tempBody");
and get nothing in return, it's only when I apply this to a wrapper
div that it seems to work. Unfortunately I am trying to avoid using
any wrapper tag. It would be ideal if I could just grab the contents
of the body without adding anymore mark up. And I am not able to strip
out all the head and body tags manually from the remote html file,
these files need to be accessed as stand alone html files as well
instead of just html fragments.
thanks in advance!