Resort to wrappers :). They don't actually have to be in the DOM: var outerhtml = $('<div>').append($('#container').clone()).html();
outerhtml --> <div id="container">all the content</div> On Mar 30, 12:40 am, Steven Yang <kenshin...@gmail.com> wrote: > well html() just gets the innerHTMLso your out of luck there > there is actually a plugin for getting the actually container html > I remember coming across it on the jquery plugin pages > you can try finding it there > > All i can say is its doesnt seem hard, but also not as easy as you think > ^^