for example, let's say there was this html:
<div>
<div id="divchild"></div>
</div>
Would there be a way to access the parent div from the child elements namespace such as:
$$('#divchild'){
# Access parent div here
$$('< div'){
# somethere here
}
}
Is there a way to take the non working example and make it work? thank you.
not with the css selectors.You'll need to use xpath selectors:
or
would select the parent div.