--- id: bad87fee1348bd9aed208826 title: Target the Children of an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: Segmente os filhos de um elemento usando jQuery --- ## Description
Quando os elementos HTML são colocados um nível abaixo do outro, eles são chamados children desse elemento. Por exemplo, os elementos de botão neste desafio com o texto "# target1", "# target2" e "# target3" são todos children do elemento <div class="well" id="left-well"> . jQuery tem uma função chamada children() que permite que você acesse os filhos de qualquer elemento selecionado. Aqui está um exemplo de como você usaria a função children() para dar aos filhos do seu elemento de left-well a cor blue : $("#left-well").children().css("color", "blue")
## Instructions
Dê a todas as crianças do seu elemento do right-well a cor laranja.
## Tests
```yml tests: - text: 'Todos os filhos de #right-well devem ter texto em laranja.' testString: 'assert($("#right-well").children().css("color") === "rgb(255, 165, 0)", "All children of #right-well should have orange text.");' - text: Você deve usar a função children() para modificar esses elementos. testString: 'assert(code.match(/\.children\(\)\.css/g), "You should use the children() function to modify these elements.");' - text: Use apenas o jQuery para adicionar essas classes ao elemento. testString: 'assert(code.match(/
/g), "Only use jQuery to add these classes to the element.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```