Search...
parent
Gets the element's parent element.
Description
Type:
NodeRead Only, default value is null
Mixed in from:$w.FormElement
Related Content:
Was this helpful?
Get the parent element and the parent's ID
Copy Code
1let parentElement = $w("#myElement").parent;23let parentId = parentElement.id; // "page1"