js get index of child element code example
Example 1: js get node index
Array.from(element.parentNode.children).indexOf(element)
Example 2: Get child node index
Array.from(element.parentNode.children).indexOf(element)
Array.from(element.parentNode.children).indexOf(element)
Array.from(element.parentNode.children).indexOf(element)