Good morning, gentlemen,
I need to count elements of a li and add those values dynamically by counting the previous li elements:
<div class="conteudo">
<ul>
<li><i class="indice">1 - </i>Conteudo 1</li>
<li><i class="indice">2 - </i>Conteudo 2</li>
<li><i class="indice">3 - </i>Conteudo 3</li>
<li><i class="indice">4 - </i>Conteudo 4</li>
<li><i class="indice">5 - </i>Conteudo 5</li>
<li><i class="indice">6 - </i>Conteudo 6</li>
</ul>
</div>