Hi, Thanks for the reply. I don't think that's it....that'll give me #dragGame1.dragMe as the + has concatenated the whole thing. I have tried it but it doesn't work. From looking at the api docs theres an example like this...:
$$('#contents a[rel]'); // -> all links inside the element of ID "contents" with a rel attribute So i'm assuming that using a space is what needs to be done to select everything in the dragGame1 div taht has a class of dragMe. On Jun 27, 11:19 am, Rudy Susanto <[EMAIL PROTECTED]> wrote: > You just missed the plus (+) sign. > > It should be like this: > > var alldrags = $$('#dragGame' + gameCount + '.dragMe'); > > and > > var alldrags = $$(dragGame + '.dragMe'); > > :) > > elduderino wrote: > > Hi, > > > I have this code: > > > var alldrags = $$('#dragGame' + gameCount '.dragMe'); > > > But it's causing an error somehow. I''m trying to say select all div's > > with dragMe class inside the dragGame (plus an incrementing number) > > div but this is throwing an error saying my function is not defined. > > > I've also tried assigning the dragGame selector to a variable....like > > so: > > > var dragGame = '#dragGame' + gameCount; > > > and then doing the selector like so: > > > var alldrags = $$(dragGame '.dragMe'); > > > Both ways are throwing an error saying my function isn't defined. > > > Any ideas? > > > Thank --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---