Solved

Removing cloned elements

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn how to dynamically set the form action using jQuery.

912 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

20 Experts available now in Live!

Get 1:1 Help Now