I want understand how can i get a element with id of 'takeme' in other context that is not the document, for example:
<div id="parent">
<div id="takeme"></div>
</div>
I know that i can use:
document.getElementById('takeme');
being document the context, now i want know how can i get the takeme from the parent, without using queryselectorall
, so i was trying to:
var parent = document.getElementById('parent');
parent.getElementById('takeme');
but of course didn't work.