Hello. I have a simple div list where one of the inner divs is being passed as a this element to the function. > How can I get the total number of divs (divisions) inside the div list? In > this case it would be 3.
<div id="list"> <div>first</div> <div>second</div> <div>...</div> </div> > How to get number of the specific div which is getting passed to the function? For instance: lets say that second div was selected - how can I get the number of the div (2 in this case)? Many thanks in advance!