# Targetting children element

**URL:** <https://forum.freecodecamp.org/t/targetting-children-element/172384>\
**Category:** General\
**Created:** [February 2, 2018, 12:14pm UTC](https://forum.freecodecamp.org/t/targetting-children-element/172384 "2018-02-02T12:14:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![palashgupta91](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@palashgupta91](https://forum.freecodecamp.org/u/palashgupta91)\
**Post date:** [February 2, 2018, 12:14pm UTC](https://forum.freecodecamp.org/t/targetting-children-element/172384/1 "2018-02-02T12:14:03Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```auto
<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("background-color","orange");

  });
</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>

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/target-the-children-of-an-element-using-jquery](https://www.freecodecamp.org/challenges/target-the-children-of-an-element-using-jquery)

---

<div class="post-metadata">

**Author:** ![TomerPacific](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tomerpacific/32/158967_2.png) [@TomerPacific](https://forum.freecodecamp.org/u/TomerPacific)\
**Post date:** [February 2, 2018, 1:09pm UTC](https://forum.freecodecamp.org/t/targetting-children-element/172384/2 "2018-02-02T13:09:46Z")

</div>

@palashgupta91,

the challenge states that all the children of the well with the id of “right-well” **need to have an orange text** , and not an orange background.

> All children of #right-well should have orange text.

````auto
$("#right-well").children().css("background-color","orange"); <--- Your code
``` **strong text**
````

---

<div class="post-metadata">

**Author:** ![palashgupta91](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@palashgupta91](https://forum.freecodecamp.org/u/palashgupta91)\
**Post date:** [February 2, 2018, 5:16pm UTC](https://forum.freecodecamp.org/t/targetting-children-element/172384/3 "2018-02-02T17:16:00Z")

</div>

Thanks bro for your help

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/targetting-children-element/172384/4 "2021-01-17T20:28:06Z")

</div>

Closed on January 17, 2021, 8:28pm UTC


