In other words, I need to check the position of the element who has the .example class.
(It's really difficult to make people understand me in english. ;P) On Mar 29, 6:07 pm, Victor Nogueira <victor.carcr...@gmail.com> wrote: > 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?