he problem is that the code that ive written to clone target5 clones it and copies it to the left-well but since i cloned target5 the name of the elements are same and that ends up transfering double target 5 boxes. and its like on and off in some moment it shows only 1 box and other it shows both target5 box'es
See original GitHub issueChallenge Use jQuery to Modify the Entire Page has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$("#left-well").children().css("color", "green");
$(".target:nth-child(2)").addClass("animated bounce");
$(".target:even").addClass("animated shake");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Overview: DNA cloning (article) - Khan Academy
DNA cloning is a molecular biology technique that makes many identical copies of a piece of DNA, such as a gene. · In...
Read more >When cloning an Epic, add the option to clone the linked ... - Jira
In JIRA, when we clone a parent issues containing sub tasks, user are given the option to automatically clone the Sub Tasks as...
Read more >Ultimate guide to clone and move Jira issues - Elements Apps
Uncover all your options to clone and move Jira issues and learn tips and best practices to keep your instance at top performance....
Read more >How to Tell if Your Phone Has Been Cloned - Techlicious
A dead connection or an unusually high bill may be signs of a SIM card that has been copied. Here's our guide to...
Read more >- HUMAN CLONING - GovInfo
The attempt to clone humans does not account for the scientific problems which occur with animal cloning and, therefore, any such attempts will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@varunmistry The title of the issue should ideally be succinct and only a few words long, to describe the issue briefly. You can use the body of the issue to fill in all the details.
+1