How to remove the last element of a jQuery selection ?
Posted
by Niklaos
on Stack Overflow
See other posts from Stack Overflow
or by Niklaos
Published on 2010-04-29T08:47:14Z
Indexed on
2010/04/29
8:57 UTC
Read the original article
Hit count: 1305
Hi,
I use a jquery selector :
$('#menus>ul>li>a')
I'd like to to iterate the selector result without the last one:
$('#menus>ul>li>a').removeLast().each(fct());
Ofcourse the function "removeLast()" doesn't exist, is there an equivalent ?
Thanks.
© Stack Overflow or respective owner