Array ng.Element.get_direct_children ([String tag = *], [Function func = Null]) vs. 1.1.0 Full+Lite

This functions works the same way as ng.Element.get_children except it only returns the direct children.


String tag (Optional - Default: *) vs. 1.1.0 Full+Lite
The tag name. To get all direct children HTML Elements, use either Null or *.
Function func (elm) (Optional - Default: Null) vs. 1.1.0 Full+Lite
An optional function to can be used on each returned HTML Element. If this function returns false, the loop will stop and the returned array will be stopped at the current HTML Element.


Array Required vs. 1.1.0 Full+Lite
An array of all the found HTML Elements.


Using ng.Element.get_direct_children(tag, func)
This is my div This is span number 1. This is span number 1.1. This is anchor 1.1. This is span 1.2. This is span 2. This is anchor 1.

API Menu