Add additional instruction to Give Each Element a Unique ID

This commit adds an addtional instruction to the challenge, specifing to
keep `target1` to `target3` in the `#left-well` and `target4` to `target6`
in the `#right-well` respectively.

Tested locally.

closes #6331
This commit is contained in:
Mrugesh Mohapatra
2016-01-20 22:46:42 +05:30
parent 55a6ec68d3
commit 2bca52f722

View File

@ -2144,7 +2144,8 @@
"title": "Give Each Element a Unique ID", "title": "Give Each Element a Unique ID",
"description": [ "description": [
"We will also want to be able to use jQuery to target each button by its unique id.", "We will also want to be able to use jQuery to target each button by its unique id.",
"Give each of your buttons a unique id like, starting with <code>target1</code> and ending with <code>target6</code>." "Give each of your buttons a unique id, starting with <code>target1</code> and ending with <code>target6</code>.",
"Make sure that <code>target1</code> to <code>target3</code> are in <code>#left-well</code>, and <code>target4</code> to <code>target6</code> are in <code>#right-well</code>."
], ],
"tests": [ "tests": [
"assert($(\"#left-well\").children(\"#target1\") && $(\"#left-well\").children(\"#target1\").length > 0, 'message: One <code>button</code> element should have the id <code>target1</code>.');", "assert($(\"#left-well\").children(\"#target1\") && $(\"#left-well\").children(\"#target1\").length > 0, 'message: One <code>button</code> element should have the id <code>target1</code>.');",