Replace .append() with .after() I think.
On Aug 18, 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.