diff --git a/seed/challenges/jquery-ajax-and-json.json b/seed/challenges/jquery-ajax-and-json.json index 3bd6b1db6b..2d38dd5a28 100644 --- a/seed/challenges/jquery-ajax-and-json.json +++ b/seed/challenges/jquery-ajax-and-json.json @@ -736,12 +736,14 @@ "description": [ "You've seen why id attributes are so convenient for targeting with jQuery selectors. But you won't always have such neat ids to work with.", "Fortunately, jQuery has some other tricks for targeting the right elements.", - "jQuery has a function called nth-child()/code> that will allow you select the nth element of a certain class or element type.", - "Let's give the fourth element with the class \"target\" the color pink.", - "Here's how you would give the third element the color blue: $('.target:nth-child(3)').css({'color': 'blue'});" + "jQuery has a function called :nth-child() that will allow you select the nth element of a certain class or element type.", + "Make the first child in each of your well elements bounce.", + "Here's how you would give the third element in each well bounce: $('.target:nth-child(3)').addClass('animated bounce');" ], "tests": [ - + "assert($('.target:nth-child(2)').hasClass('animated') && $('.target:nth-child(2)').hasClass('bounce'), 'The second element in each of your \"well\" elements should bounce.')", + "assert(editor.match(/\\:nth-child\\(/g), 'You should use the :nth-child() function to modify these elements.')", + "assert(editor.match(/", + " ", + " ", + " ", + " ", + "
", + "

#right-well

", + "
", + " ", + " ", + " ", + "
", + "
", + " ", + "" ], "challengeType": 0 },