how to get the index of child node in javascript 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)