Search.../

children

Gets an array of the elements that are contained within the element.

Description

Some elements, such as pages, headers, footers, and boxes, can contain other elements. This occurs when you drag an element onto a container element and attach it. These attached elements are considered the parent element's children.

Type:

Array<Element>Read Only, default value is An empty array
Mixed in from:$w.ContainableMixin

Related Content:

Was this helpful?

Get an element's children

Copy Code
1let myChildren = $w("#myContainer").children;
2
3let firstChild = myChildren[0];