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

This functions works the same way as ng.Element.get_children except it searches for a specific CSS class name. This function was added to the Lite version as of version 1.2.0

Parameters

String cls Required vs. 1.1.0 Full+Lite
The CSS class name to search for.
String tag (Optional - Default: *) vs. 1.1.0 Full+Lite
An optional tag name if you are looking for specific tags only.
Function func (elm) 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.

Return

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

Examples

Using ng.Element.get_children_by_class_name(cls, t
Demo:
Span 1 Span 1.1 Anchor 1.1 Anchor 1

API Menu