I believe that it's:

$('.shiny:first') 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Jordan
Sent: Thursday, June 14, 2007 3:18 PM
To: jQuery (English)
Subject: [jQuery] Can I select just one?


Hi folks,

I've not really had a need to do this before, but is it possible to tell
jQuery that when doing a selection I just want the first one found?

I know that I can reference the zeroth element in the array of matches. As
it happens, right now I've got a need to just get the first occurance of x,
and instead of returning all of them, I'd like to just return the first one.

Any thoughts?

Chris


Reply via email to