Forums

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

Home Forums JavaScript how can i access these classes Reply To: how can i access these classes

#248936
Shikkediel
Participant

First off, the “inner” index indeed starts at zero.

But $(this) is the jQuery object with the image in it, the image itself is this. It will always be an object and can even be empty (but it won’t here or it wouldn’t loop). Because I can’t tell what the data-srcis for exactly (I’m not familiar to the plugin) and the demo isn’t fully functional, it’s hard to tell what’s going wrong.