Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#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