Please forgive me if I repeat the question.
I have HTML that all elements inside a div tag has different id, suppose I have already get the reference to the div, is
A simple way to do what OP desires in core JS.
document.getElementById(parent.id).children[child.id];