Home › Forums › JavaScript › Applying var and function to multiple divs with the same class › Reply To: Applying var and function to multiple divs with the same class
November 22, 2013 at 2:39 pm
#156945
Alen
Participant
http://codepen.io/anon/pen/stfBu
When you use $('.thing')
it essentially returns array, you would you first()
to pluck the first item out of the array.
Hope that helps