how to use querySelector to select the parent element from the child?
in my example the HTML structure is like this:
<label>
<input/> <!-- I know only this -->
</label>
and in html what I know is only the child so input.
how can get the parent from child input, so getting the label.
from what I know is easy to get the child from the parent by doing like this parent > child
is there any child < parent? (similar logic).
if isn't possible with querySelector() is there any other way with the javascript API?