@atwork8 don't say you were not rude when you were. Hope you get somebody's help.
-- Fábio Miranda Costa Solucione Sistemas Front-End Engineer http://meiocodigo.com On Thu, Aug 27, 2009 at 9:36 AM, atwork8 <[email protected]> wrote: > > @ksamdev - what are the benefits of doing it that way over what I had > originally posted? > > var elBody = $(document.body); > elBody.set('html', '<div id="wrapper">' + elBody.get('html') + '</ > div>'); > > On Aug 27, 1:27 pm, ksamdev <[email protected]> wrote: > > ok. I see your point. Then do something like: > > > > var _div = new Element( 'div'); > > var _body = $( document.body); > > _body.getChildren().each( function( _item) { _div.grab( _item); }); > > _body.adopt( _div); > > > > On Aug 27, 7:22 am, atwork8 <[email protected]> wrote: > > > > > @ksamdev - Could you please read the problem. The results are > > > completely different. The solution I've provided generates this: > > > > > <body><div id="wrapper">body's html</div></body> > > > > > Fabio's generates: > > > > > <div id="wrapper"><body>body's html</body></div> >
