[jQuery] return position in an array
I want to find out if an element who has the class .example is
positioned as last-child. So I can add this condition to a if.
I need to figure out if the element is the last in the list, comparing
it's position in the array with array length.
Any ideas?