[jQuery] Re: Can I select just one?

2007-06-14 Thread Christopher Jordan
Thanks everyone! Chris Jake McGraw wrote: With some functions, its only the first item which is modified / used like: $("a").attr("href"); Okay, everyone beat me to the punch, if you follow their directions, I think you'll be set. - jake On 6/14/07, Chris Jordan <[EMAIL PROTECTED]

[jQuery] Re: Can I select just one?

2007-06-14 Thread Jake McGraw
With some functions, its only the first item which is modified / used like: $("a").attr("href"); Okay, everyone beat me to the punch, if you follow their directions, I think you'll be set. - jake On 6/14/07, Chris Jordan <[EMAIL PROTECTED]> wrote: Hi folks, I've not really had a need

[jQuery] Re: Can I select just one?

2007-06-14 Thread Josh Nathanson
Do you mean like $("td:first") for example? -- Josh - Original Message - From: "Chris Jordan" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Thursday, June 14, 2007 1:18 PM Subject: [jQuery] Can I select just one? Hi folks, I've not really had a need to do this before, but is

[jQuery] Re: Can I select just one?

2007-06-14 Thread Andy Matthews
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 d

[jQuery] Re: Can I select just one?

2007-06-14 Thread Klaus Hartl
Chris Jordan wrote: 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 ge

[jQuery] Re: Can I select just one?

2007-06-14 Thread sozzi
You mean like: $("p:first")? have a look at the possible selectors at: http://docs.jquery.com/DOM/Traversing/Selectors Regards