Within my div-containers, I have a collection of div-elements. I am looking to identify the parent number of the div-element that is currently being dragged
For example, if Skyler White is being dragged, the expected output should be "0" as it is from the first subcontainer with the id "subcontainer". If Jesse Pinkman is being dragged, the output should be 1
<div id="container">
<div id="subcontainer">
<div id="0" draggable="true">Walter White</div>
<div id="1" draggable="true">Skyler White</div>
<div id="2" draggable="true">Hank Schrader</div>
</div>
<div id="subcontainer"></div>
<div id="0" draggable="true">Saul Goodman</div>
<div id="1" draggable="true">Jesse Pinkman</div>
</div>
</div>