Thanks. I did resort to wrappers. I actually wound up going the other direction. I won't bore you with my app but I inserted an inner wrapper and then grabbed the html.
$('#content').wrapInner('<div id="template"></div>') var stuffToSave = $('#content').html(); then after some back and forth with the server the content is loaded via $('#content').load(stuffISaved); your method keeps the extra div out though and that's sexier. My inner nerd might make me switch to it. Thank you, Will On Mar 30, 9:33 am, mkmanning <michaell...@gmail.com> wrote: > 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 > > ^^ > >