JavaScript Demo
JavaScript / HTML/ CSS Code
Output
Index of element "1"
Index of element "1" by using start index