Hi Fabien,

You were almost there! Just add a colon before first-child.

        $("div.myclass:not(:first-child)").css("do", "stuff");


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Apr 24, 2007, at 9:53 AM, Fabien Meghazi wrote:


Hi all,

What is the more elegant way to select all but first-child of a set of
elements ?

I tried

$("div.myclass:not(first-child)").css("do", "stuff");

whithout success

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]

Reply via email to