[jQuery] Re: Get element's html and the element

2009-03-30 Thread Steven Yang
ha thanks mkmanningthats sure something never came across in my mind good idea

[jQuery] Re: Get element's html and the element

2009-03-30 Thread will
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('') var stuffToSave = $('#content').html(); then after some back and forth with the server the conten

[jQuery] Re: Get element's html and the element

2009-03-30 Thread mkmanning
Resort to wrappers :). They don't actually have to be in the DOM: var outerhtml = $('').append($('#container').clone()).html(); outerhtml --> all the content On Mar 30, 12:40 am, Steven Yang wrote: > well html() just gets the innerHTMLso your out of luck there > there is actually a plugin for

[jQuery] Re: Get element's html and the element

2009-03-30 Thread Steven Yang
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 ^^