Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 75
  • Last Modified:

Removing cloned elements

Is it possible to delete elements that have been cloned.  Below does not seem to work the way I expect.

http://jsfiddle.net/isogunro/vj5489ye/12/
0
Isaac
Asked:
Isaac
1 Solution
 
James BilousSoftware EngineerCommented:
Why not just append the object to the parent rather than cloning and removing it?
0
 
IsaacSharePoint Client Side DeveloperAuthor Commented:
In my real project, I have to clone some elements and store it somewhere else. The problem is that the elements I'm cloning is wrapped in a div and in that div are several other div's.  I don't want all the divs so I want to remove the one's I don't need.  I'm basically trying to remove elements from what I cloned.
0
 
Tom BeckCommented:
To remove #DisplayQueue for example from the clone would look like this:

$(copyFilterBy).remove("#DisplayQueue");
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now