Add sentence referencing zero-index in jQuery even-odd challenge

This commit is contained in:
dhcodes
2016-08-09 14:15:45 -05:00
parent e610f64ff9
commit e6f9b61b5e

View File

@ -1320,7 +1320,7 @@
"Here's how you would target all the odd-numbered elements with class <code>target</code> and give them classes:",
"<code>$(\".target:odd\").addClass(\"animated shake\");</code>",
"Note that jQuery is zero-indexed, meaning that, counter-intuitively, <code>:odd</code> selects the second element, fourth element, and so on.",
"Try selecting all the even-numbered <code>target</code> elements and giving them the classes of <code>animated</code> and <code>shake</code>."
"Try selecting all the even-numbered <code>target</code> elements and giving them the classes of <code>animated</code> and <code>shake</code>. Even-numbered is defined here with a zero-index in mind."
],
"challengeSeed": [
"fccss",