Thank you!
On Aug 18, 11:05 am, Charlie Griefer <charlie.grie...@gmail.com> wrote: > As per the docs (http://docs.jquery.com/Manipulation/append#content), > append() appends "content to the *inside* of every matched element." > > You can try appending to the current matched element's parent, or try the > after() method (http://docs.jquery.com/Manipulation/after#content) > > > > On Tue, Aug 18, 2009 at 10:52 AM, Renato Untalan <phis...@gmail.com> wrote: > > > I'm trying to clone an element, more specifically a fieldset tag. > > > Original HTML: > > <fieldset>Hello World.</fieldset> > > > Javascript: > > $("fieldset").each(function(count,item){ > > var fieldsetBlock = $(this).append($(this).clone()) > > }) > > > Desired HTML: > > <fieldset>Hello World.</fieldset> > > <fieldset>Hello World.</fieldset> > > > Undesired Result: > > <fieldset> > > Hello World. > > <fieldset> > > Hello World. > > </fieldset> > > </fieldset> > > > I hope this is a trivial question. Thanks in advance jquery friends! > > Any help is appreciated. > > -- > I have failed as much as I have succeeded. But I love my life. I love my > wife. And I wish you my kind of success.