Search...
parent
Gets the mobile element's parent element.
Description
Some mobile elements can contain other elements. This occurs when you drag
a mobile element onto a container element. The container is the parent
of
all the elements it contains.
Type:
NodeRead Only, default value is null
Mixed in from:$w.MobileElement
Was this helpful?
Get the parent mobile element and the parent's ID
Copy Code
1let parentElement = $w('#myMobileElement').parent;23let parentId = parentElement.id; // 'container1'