-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
chubaka wrote:
> Hi,
>
> i need some help :)
>
> Does anywhere exists a fix for a code (scheme) like this:
>
> ----------------
> var blas = document.getElementsByClassName( 'foo-class', 'foo-id' );
> blas.each
> (
> function( bla )
> {
> var subbla = Element.childrenWithClassName( bla, 'subbla-class',
> true );
> }
> );
> --------------
> How can/must I rewrite the code?
$$('#foo-id .foo-class > .subbla-class')
^ all ".subbla-class" children of any ".foo-class" element that is a
descendant of "#foo-id" ;-)
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----
iD8DBQFF17BhtZHp/AYZiNkRAta2AKDH7GdAUKU93SFSqemzmmzeFd+vBgCgz3A+
vhc+LwDEdWGyJ3EqKGGyEuw=
=yEf+
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---