Fixed Target the same element with multiple jQuery Selectors instructions

This commit is contained in:
Tian Zhou
2016-05-07 16:59:39 -07:00
parent a6b10abf77
commit 72e26c0a39

View File

@ -344,8 +344,7 @@
"title": "Target the same element with multiple jQuery Selectors",
"description": [
"Now you know three ways of targeting elements: by type: <code>$(\"button\")</code>, by class: <code>$(\".btn\")</code>, and by id <code>$(\"#target1\")</code>.",
"Although it is possible to add multiple classes in a single <code>.addClass()</code> call, let's add them to the same element in three different ways.",
"Using each of the above jQuery selectors and the <code>addClass()</code> function:",
"Using <code>.addClass()</code>, add only one class at a time to the same element, three different ways:",
"Add the <code>animated</code> class to all elements with type <code>button</code>.",
"Add the <code>shake</code> class to all the buttons with class <code>.btn</code>.",
"Add the <code>btn-primary</code> class to the button with id <code>#target1</code>."