I am currently working on a mootools 1.3.1 script and have a structure like this:
<div id="100">
<img src="">
</div>
I know already the selector $$('div.class img') but how does it look for an id?
The whole documentation for css selectors on mootools.net is missing: http://mootools.net/docs/core/Utilities/Selectors
And here is only for class?: http://mootools.net/docs/core/Slick/Slick
Just replace the class selector with an ID selector?
If you only want
imgelements that are children ofdiv#100, add a child combinator as in your question title:If MooTools says it supports CSS selectors, it shouldn’t be that much of a difference from the standard CSS that we use. If the latest documentation is somehow missing, it should still be sufficient to fall back to a previous but still recent version (here’s the documentation for MooTools 1.2.5, the second Google result for “mootools selectors”) or regular CSS documentation, like the W3C selectors spec.