Solved

Removing cloned elements

Posted on 2015-02-10
3
60 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
3 Comments
 
LVL 7

Expert Comment

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

Author Comment

by:Isaac
Comment Utility
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
Comment Utility
To remove #DisplayQueue for example from the clone would look like this:

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now