You are viewing limited content. For full access, please sign in.

Question

Question

jQuery clone() problem

asked on February 3, 2015

Hi,

 

I am using clone() to create a deep copy of the set of elements .But the problem is after inserting inside a section , It is being added on top of the section instead of  bottom .It means it should to be the last part inside a section not the first one .

this is my code  :

$orginal is a div with all contents .

 var $cloned = $orginal.clone();

var $taregt =  $('li[attr=...] div.kx-repeatable div.form-q').last() ;

    $cloned .insertAfter($taregt ) ;

 

Thanks.

 

0 0

Replies

replied on February 3, 2015

What Laserfiche product are we talking about here?

0 0
replied on February 4, 2015

Perhaps you're just looking for the .AppendTo() method instead of the insertAfter()?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.