descendants :: Element |
Note that all of Prototype’s DOM traversal methods ignore text nodes and return element nodes only.
Examples
<div id="australopithecus"> <div id="homo-herectus"> <div id="homo-neanderthalensis"></div> <div id="homo-sapiens"></div> </div> </div>
$('australopithecus').descendants(); // -> [div#homo-herectus, div#homo-neanderthalensis, div#homo-sapiens]
$('homo-sapiens').descendants(); // -> []
|
Prototype API 1.5.0 - prototypejs.org