Assuming that the divs are siblings and you want everything after the third 
element hidden, you could probably try the following

$(".divclass:nth-child(3)~.divclass").hide();

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anthonyd
Sent: Tuesday, June 03, 2008 4:47 PM
To: jQuery (English)
Subject: [jQuery] Hiding after a certain amount of elements are shown?


Hello,
$(".divclass:not(:first)").hide();
Works perfectly in hiding everything after the first element with that
class but I need to hide after the third or forth element with that
class, any suggestions?
Thanks, Ant.

Reply via email to