Hi there,

Yes i'm ok with concatenating in javascript but i really didnt think i
needed to concatenate the dragme class on to the end...but it seems
so!

Thanks

On Jun 27, 1:57 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote:
> You want a selector of:
>
> #dragGame<n> <space> .dragMe
>
> Where n is the value of gameCount?
>
> That's $$('#dragGame' + gameCount + ' .dragMe').  Note the space.
>
> You were on the right track, but in JS you always need an explicit + to do
> string concatenation.
>
> -Fred
>
> On Fri, Jun 27, 2008 at 4:20 AM, elduderino <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi,
>
> > I have this code:
>
> > var alldrags = $$('#dragGame' + gameCount '.dragMe');
>
> --
> Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to