Also note, that if you have two dl elements in the div then you will
receive two results in the array (one for each dl dd:first-child),
also any nested dl will show too.

Edd

On Jan 29, 5:01 am, kangax <kan...@gmail.com> wrote:
> On Jan 28, 2:09 pm, Anjanesh <anjanesh.for...@gmail.com> wrote:
>
> > Im trying to get the first dd in dl but couldnt find a way to do so.
>
> > $$('#someDIVId dl dd:first') n FireBug returns [dd, dd]
> > Why does it return [dd, dd] - shouldnt it return just dd ?
>
> $$('#someDIVId dl dd:first-child');
>
> Note that it will return an array, not a single element.
>
> --
> kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to