From d5b2eb99c70e70341c79f049252bf7793924800b Mon Sep 17 00:00:00 2001 From: Stuart Date: Wed, 1 Jun 2016 22:32:35 +0100 Subject: [PATCH] FIX/Change Text Inside an Element Using jQuery --- .../01-front-end-development-certification/jquery.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/jquery.json b/seed/challenges/01-front-end-development-certification/jquery.json index d78d273b7e..4f37098454 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -665,7 +665,8 @@ "assert.isTrue((/#target4<\\/em>/gi).test($(\"#target4\").html()), 'message: Emphasize the text in your target4 button by adding HTML tags.');", "assert($(\"#target4\") && $(\"#target4\").text() === '#target4', 'message: Make sure the text is otherwise unchanged.');", "assert.isFalse((//gi).test($(\"h3\").html()), 'message: Do not alter any other text.');", - "assert(code.match(/\\.html\\(/g), 'message: Make sure you are using .html() and not .text().');" + "assert(code.match(/\\.html\\(/g), 'message: Make sure you are using .html() and not .text().');", + "assert(code.match(/\\$\\(\\s*?(\\\"|\\')#target4(\\\"|\\')\\s*?\\)\\.html\\(/), 'message: Make sure to select button id=\"target4\" with jQuery.');" ], "type": "waypoint", "challengeType": 0,