Hi all, here's my situation :
<ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> </ul> I've got $(this) containing the jquery object of element <li>C</li> I would like a jquery selection of previous elements and current element included, in other words I would like [A, B, C] What is the fastest way to accomplish this ? I was thinking about $(this).parent().find("li").lt(X) but X would be the index of current element (C) and I don't know how to get it. Besides, I'm sure there's a faster way I'm not yet aware of. Thanks for you help. -- Fabien Meghazi Website: http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]