freeCodeCamp Challenge Guide: Target Elements by ID Using jQuery

freeCodeCamp Challenge Guide: Target Elements by ID Using jQuery
0.0 0

#1

You can also target elements by their id attributes. Note that, just like with CSS declarations, you type a # before the id’s name.

$("#target3").addClass("animated fadeOut");

I did this and still have the 2nd error


You have to separately select target3 as well as the button
#3

why are we using # symbol here? what does it mean? what does it do? is it optional? or do I have to use it?