Try this for the first one:

$('.equipment a.i-right1').not(':eq(0)').hide();

For the second one, check out the slice() method.

-- Josh

----- Original Message ----- From: "JohneeM" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, July 08, 2008 10:00 AM
Subject: [jQuery] Running a loop for array numbers



Hi guys how can i run this in a single statement without manually
putting in the numbers?

$('.equipment a.i-right1:eq(1)').hide();
$('.equipment a.i-right1:eq(2)').hide();
$('.equipment a.i-right1:eq(3)').hide();
$('.equipment a.i-right1:eq(4)').hide();
$('.equipment a.i-right1:eq(5)').hide();
$('.equipment a.i-right1:eq(6)').hide();
$('.equipment a.i-right1:eq(7)').hide();
$('.equipment a.i-right1:eq(8)').hide();


Note that im skipping the first array [0] due to wanting it to show.


Also this one :

   $('.performance-parts #content-container
a.lightbox:eq(8)').lightBox();
   $('.performance-parts #content-container
a.lightbox:eq(9)').lightBox();

They need to be in their own array as i want to run a seperate
lightbox for each image, is this possible?



Thanks.

Reply via email to