hyTags
HomeHome DocumentationDocumentation

selection-get-parent

Gets the parent element of the selected element.
Parameter
Type
Description
return
element
The parent element, or nil if none exists
Test Case:Get parent element
    <div><span></span></div>
    
    <selection-get-parent>
    
    👆 Try to change something!
  • Test succeeded Test failed