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

Returns an array of HTML Elements (extended by the ng.Element class) based on the tag name. This function will return all the HTML Elements that match the tag including sub-children.


String tag (Optional - Default: *) vs. 1.1.0 Full+Lite
The tag name. To get all the 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_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.

API Menu