Solved

Removing cloned elements

Posted on 2015-02-10
3
63 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 8

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

840 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