Home › Forums › JavaScript › Dumbfounded by THIS › Reply To: Dumbfounded by THIS
September 3, 2013 at 3:51 pm
#148961
TheDoc
Member
Doesn’t
$(this)
reference$('.color')
?
Not really the way you’re thinking it does.
In this case, $(this)
refers to the element with a class of color
that has been clicked, not all elements with the class of color
like saying $('.color')
means.