With Prototype 1.6.0_rc0 you can use:
var divs = $$(''div[id$="_2"]'');
On 21 Wrz, 18:45, Jean-Christophe Roux
<jc...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> hello,
>
> I have a grid of div slike
> <div id=''_0_0''></div><div
id=''_0_1''></div><div
id=''_0_2''></div>
> <div id=''_1_0''></div><div
id=''_1_1''></div><div
id=''_1_2''></div>
> <div id=''_2_0''></div><div
id=''_2_1''></div><div
id=''_2_2''></div>
>
> What would be the most elegant and efficient way to select the third
column? I would looking something like $$(''_*_2'') or... well I
dont'' know.
> Thank you
> JCR
>
>
____________________________________________________________________________________
> Got a little couch potato?
> Check out fun summer activities for
kids.http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for...
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---