here it is in MooShell: http://mooshell.net/MkrV7/

On Oct 22, 11:17 pm, csuwldcat <[email protected]> wrote:
> If you just want the hrefs in an array do what Aaron said, if you want
> some span on a page for instance to be populated with links having
> commas between them then do something like i suggested, again i havent
> tested that...
>
> On Oct 22, 11:13 pm, csuwldcat <[email protected]> wrote:
>
>
>
> > $$('a').each(function(e, i, a){ yourElement.grab(e).appendText((i <
> > a.length -1) ? ',' : ''); });
>
> > I didnt test that yet, but try it out.
>
> > On Oct 22, 10:24 pm, "Steve Onnis" <[email protected]> wrote:
>
> > > getElements("a").toString()
>
> > > All yo uwill get though is "object,object,object"
>
> > > What are you trying to do with them?
>
> > > -----Original Message-----
> > > From: TheIvIaxx [mailto:[email protected]]
> > > Sent: Friday, 23 October 2009 4:07 PM
> > > To: MooTools Users
> > > Subject: [Moo] join a list of elements
>
> > > If i have an array of 'a' Elements and i would like to join them with
> > > a ',' resulting in a list of comma separated links on a page.  Is
> > > there a quick way to do this in mootools?
>
> > > Thanks

Reply via email to