freeCodeCamp Challenge Guide: Target Elements by Class Using jQuery

freeCodeCamp Challenge Guide: Target Elements by Class Using jQuery
0

#1

Just as we did before, we can also target elements by classes.

$(".well".addClass "animated shake");

Still that dreaded
#2

why did we use no period/full stop (“button”) for the button element and used it in selecting the well element ("**.**well")


#3

Try this----
“addClass” is case sensitive as:
JavaScript is case-sensitive: tolowercase() won’t work, it must be toLowerCase().

In fact, every language taught on Codecademy is case-sensitive. Exception, / tag names don’t care about case, but HTML is a markup, not a programming language.


#4

its because the “button” is the html element while the “.well” is class inside the div.
I was also confused at this first


#5

Many thanks to both of you :slight_smile:
This comes to my mind when I faced with challenge.


#6

hey, guys, My seem not work well. anyone can give the clue? please help me out on this section, kinda stuck-in, thanks!


#7

yes, thanks! it must be CAPS CASE, with Class, otherwise, wont work.


#8

Thank you very much
You have helped me, very case sensitive