Change the text of a jQuery challenge (#14799)
The text was changed to be more accurate. It incorrectly talked about ancestors/descendants as parents/children. Text about property inheritance was also removed to keep the focus of the challenge on targeting children. Change "Instructions" to <hr> in jQuery challenge This seems to align with the style guide more
This commit is contained in:
committed by
mrugesh mohapatra
parent
852678f6f4
commit
a7565a932b
@ -1195,12 +1195,12 @@
|
|||||||
"id": "bad87fee1348bd9aed208826",
|
"id": "bad87fee1348bd9aed208826",
|
||||||
"title": "Target the Children of an Element Using jQuery",
|
"title": "Target the Children of an Element Using jQuery",
|
||||||
"description": [
|
"description": [
|
||||||
"Many HTML elements have <code>children</code> which <code>inherit</code> their properties from their parent HTML elements.",
|
"When HTML elements are placed one level below another they are called <code>children</code> of that element. For example, the button elements in this challenge with the text \"#target1\", \"#target2\", and \"#target3\" are all <code>children</code> of the <code><div class=\"well\" id=\"left-well\"></code> element.",
|
||||||
"For example, every HTML element is a child of your <code>body</code> element, and your \"jQuery Playground\" <code>h3</code> element is a child of your <code><div class=\"container-fluid\"></code> element.",
|
|
||||||
"jQuery has a function called <code>children()</code> that allows you to access the children of whichever element you've selected.",
|
"jQuery has a function called <code>children()</code> that allows you to access the children of whichever element you've selected.",
|
||||||
"Here's an example of how you would use the <code>children()</code> function to give the children of your <code>left-well</code> element the color of blue:",
|
"Here's an example of how you would use the <code>children()</code> function to give the children of your <code>left-well</code> element the color <code>blue</code>:",
|
||||||
"<code>$(\"#left-well\").children().css(\"color\", \"blue\")</code>",
|
"<code>$(\"#left-well\").children().css(\"color\", \"blue\")</code>",
|
||||||
"Give all the children of your <code>#right-well</code> element a color of orange."
|
"<hr>",
|
||||||
|
"Give all the children of your <code>right-well</code> element the color orange."
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"fccss",
|
"fccss",
|
||||||
|
Reference in New Issue
Block a user