diff --git a/seed/challenges/03-front-end-libraries/jquery.json b/seed/challenges/03-front-end-libraries/jquery.json index 0b5359e2cd2..049afd3ba03 100644 --- a/seed/challenges/03-front-end-libraries/jquery.json +++ b/seed/challenges/03-front-end-libraries/jquery.json @@ -1360,18 +1360,18 @@ }, { "id": "bad87fee1348bd9aed008826", - "title": "Target Even Numbered Elements Using jQuery", + "title": "Target Even Elements Using jQuery", "required": [ { "link": "https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css" } ], "description": [ - "You can also target all the even-numbered elements.", - "Here's how you would target all the odd-numbered elements with class target and give them classes:", + "You can also target elements based on their positions using :odd or :even selectors.", + "Note that jQuery is zero-indexed which means the first element in a selection has a position of 0. This can be a little confusing as, counter-intuitively, :odd selects the second element (position 1), fourth element (position 3), and so on.", + "Here's how you would target all the odd elements with class target and give them classes:", "$(\".target:odd\").addClass(\"animated shake\");", - "Note that jQuery is zero-indexed, meaning that, counter-intuitively, :odd selects the second element, fourth element, and so on.", - "Try selecting all the even-numbered target elements and giving them the classes of animated and shake. Even-numbered is defined here with a zero-index in mind." + "Try selecting all the even target elements and giving them the classes of animated and shake. Remember that even refers to the position of elements with a zero-based system in mind." ], "challengeSeed": [ "fccss", @@ -1415,8 +1415,8 @@ ], "tests": [ "assert($('.target:even').hasClass('animated') && $('.target:even').hasClass('shake'), 'message: All of the target elements that jQuery considers to be even should shake.');", - "assert(code.match(/\\:even/g), 'message: You should use the :even function to modify these elements.');", - "assert(code.match(/