Solved

Removing cloned elements

Posted on 2015-02-10
3
66 Views
Last Modified: 2015-02-11
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
Comment
Question by:Isaac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Expert Comment

by:James Bilous
ID: 40600849
Why not just append the object to the parent rather than cloning and removing it?
0
 
LVL 5

Author Comment

by:Isaac
ID: 40600868
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
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40600972
To remove #DisplayQueue for example from the clone would look like this:

$(copyFilterBy).remove("#DisplayQueue");
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question