Skip to content

This index element

HomeHoltzman77231This index element
22.01.2021

There may be times when you need to know the index of the element that is clicked from within a group of elements e.g. a group of divs inside another div. Index of Elements. Legend: Optional, Forbidden, Empty, Deprecated, Loose DTD, Frameset DTD. Name, Start Tag, End Tag, Empty  var output = $(this).index(); // get index of the clicked item $(".box").text("Index of the Element Clicked : " + output); }); });