Here is the example code:
<div> <div> </div> <div> </div> <div> </div> .... </div> I just need to find the index of the the inner div in the parent div, passed to function as this.
p.s. I checked the other question which is same: Is it possible to get element's numerical index in its parent node without looping?
however that method suggested did not work for me.. Is it possible to get element's numerical index in its parent node without looping?