JavaScript Demo
JavaScript / HTML/ CSS Code
Output
Index of element "6"
Index of element "6"