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")
right-well
a cor laranja. #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(/