a:first-child ... it's just CSS, nothing magic :) If you actually want all the elements, but just want to do something with the first
var els = $$(selector)
var el = els[0]
On Feb 28, 2011, at 12:03 PM, hamburger wrote:
> Hello, why i do not get the first element?
>
> is that the wrong syntax?
>
> var test = $$('#chatpanel a:first, #alertpanel a:first');
>
> http://jsfiddle.net/B83LE/
