I have the following situation below fiddle:
When I click on a "view_larger" class, I am trying to get the index of the ".inner" parent class in reference to the whole page.
For example, if I click on the 2nd view_larger class, The index of ".inner" class should be equal to 1.
This is what I have so far:
$(".view_larger").click(function(){
var classIndex = $(this).parent().index();
console.log("classIndex");
})
I hope this is clear enough.
Thanks.