skip to Main Content

Jquery – Count elements and show/update value of current in view + total

I am trying to understand how to count and display current and total number of figures on my page. My html <div class="is-vertical"> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> <figure><img src="src.jpg"><figcaption class="wp-element-caption">Towers Day<br>NYC</figcaption></figure> </div> My js attempt of…

VIEW QUESTION
Back To Top
Search