> var children = someEl.getChildren('.sub-el');

That's  what  I  thought the OP meant, too, but I think the same class
can occur at deeper nesting levels as well.

Try this:

var f = $('el_id').getFirst('.class_name');
var an = f ? f.getAllNext('.class_name') : null;
an ? an.unshift(f) : an;

-- Sandy

Reply via email to