[jQuery] Get element's html and the element

[jQuery] Get element's html and the element


Hi,
Trying to grab an element from the page and save it to a file. I'm
able to get its contents with .html() but I can't figure out how get
the container itself (and its contents) without resorting to wrappers.
Basically, I want $("div#container").html(); to output "<div
id="container>all the content</div>"
Something tells me this is easy and I'm just missing it. Thanks for
any help.
Will