From e27be1259a1d729b3ebcdd6a42b7ff601c480d4c 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 --- challenges/01-front-end-development-certification/jquery.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/jquery.json b/challenges/01-front-end-development-certification/jquery.json index d78d273b7e..4f37098454 100644 --- a/challenges/01-front-end-development-certification/jquery.json +++ b/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,