Good greef Samy! That works like a charm - I did not think it´s that simple.
Thanks a million. Q. On Sep 26, 3:18 pm, "Mauricio \(Maujor\) Samy Silva" <[EMAIL PROTECTED]> wrote: > Use wrapAll() method. > > Maujor > > -----Mensagem Original----- > De: "thelemondropkid" <[EMAIL PROTECTED]> > Para: "jQuery (English)" <jquery-en@googlegroups.com> > Enviada em: sexta-feira, 26 de setembro de 2008 09:13 > Assunto: [jQuery] wrap function > > I´m stuck, please help! > > My code: > > <div class="box-two"> > <h1>some header</h1> > <img name="Image" src="" width="250" height="200" alt="Image" /> > <p>Lorem ipsum dolor sit amet</p> > </div> > > The jQuery: > > $(document).ready(function(){ > $("div.box-two > *").wrap('<div class="inside"></div>'); > }); > > The idea is to 'wrap' the <h1>, <img> and the <p> with a single <div > class="inside">. > The problem I have is that ALL the elements are individually wrapped > with <div class="inside">. Not what I want! > > How can i tell jquery to do this?