So I’m working my way through the first set of classes here, and we’re just getting into jQuery. The code I was instructed to add to my jQuery Playground is as follows:
When I was instructed to add the $(".well") selector, there was a note saying “Note that, just like with CSS declarations, you type a . before the class’s name.”
However, I was not instructed to add a period before the $(“button”) selector. Can anyone explain to me what the difference is, and why one requires the period but the other does not? Just trying to wrap my head around this. Thanks!