MooTools Select from Element Children

Something that doesn’t bring up an instant result is MooTools Select Element Children.

Again, this is part of my all-of-the-sudden drive to put things that don’t give me a Google insta-answer on my blog.

What you’re looking for is:

var childEl = $('parent_element').getElement('#child_element');

Or alternatively

var parentElCollection = $$('#parent_element');
parentEl  = parentElCollection[0];
var childEl = parentEl.getElement('#child_element');

Trackback URL

One Comment on "MooTools Select from Element Children"

  1. Gee
    02/04/2009 at 3:36 pm Permalink

    Hi thanks, I’ve been looking for this all day long

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe to Comments