From 31a82c5c64cfd283e0a9a0d4235c8f5292c7b540 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 25 Aug 2015 17:16:08 -0700 Subject: [PATCH] add a note about jQuery and Animate.css not usually being accessible in code editor --- seed/challenges/jquery.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seed/challenges/jquery.json b/seed/challenges/jquery.json index 54d1ea88a94..64fb9253faf 100644 --- a/seed/challenges/jquery.json +++ b/seed/challenges/jquery.json @@ -58,7 +58,8 @@ "This is important because without your document ready function, your code may run before your HTML is rendered, which would cause bugs.", "Now let's write our first jQuery statement. All jQuery functions start with a $, usually referred to as a dollar sign operator, or simply as bling.", "jQuery often selects an HTML element with a selector, then does something to that element.", - "For example, let's make all of your button elements bounce. Just add this code inside your document ready function: $(\"button\").addClass(\"animated bounce\")." + "For example, let's make all of your button elements bounce. Just add this code inside your document ready function: $(\"button\").addClass(\"animated bounce\").", + "Note that we've already included both the jQuery library and the Animate.css library in your code editor. So you are using jQuery to apply the Animate.css bounce class to your button elements." ], "tests": [ "assert($(\"button\").hasClass(\"animated\") && $(\"button\").hasClass(\"bounce\"), 'Use the jQuery addClass() function to give the classes animated and bounce to your button elements.')", @@ -671,7 +672,7 @@ "id": "bad87fee1348bd9aed208826", "title": "Target the Children of an Element Using jQuery", "difficulty": 3.14, - "description": [ + "description": [ "Many HTML elements have children elements from which inherit their properties.", "For example, every HTML element is a child of your body element, and your \"jQuery Playground\" h3 element is a child of your <div class=\"container-fluid\"> element.", "jQuery has a function called children() that allows you to access the children of whichever element you've selected.",