Exercise 6, why does it tell me to make sure I'm adding the "active" class on hover?


#1

IDK WHAT TO DO!


.click() and .hover
#2

@microace01843 Look at the $(this) on line 3. this represents the current element. In the case of your code, what do you think that would be?

You need to change it to $('div') instead :slight_smile:


#3


YOU HAVE MY SINCERE GRATITUDE!!!


#4

i have 'div' in that specific line, yet the page keeps saying i didn't added the class... The rest of the code is written the same as in the image attached here


#5

@chipninja44875 Please create a new topic with your code, a link to the exercise you're on, and the error message you're getting.

Thanks!


#6