$(selector_for_your_element).is(":last-child") will return a boolean,
which it sounds like you'd want for your conditional anyway?

On Mar 29, 2:14 pm, Victor Nogueira <[email protected]> wrote:
> 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 <[email protected]> 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?

Reply via email to