2
For example, in HTML, I have this:
<ul class="benefits">
<li>Finalização rápida e fácil</li>
<li>Múltiplos endereços de envio</li>
<li>Acesso fácil a seu histórico de pedidos e status</li>
</ul>
As you can see, it has 3 li’s, as caught by [0] to [1] and [2] with Jquery?
I tried something strange, but as expected it didn’t work:
$('ul.benefits li' + [0]).text('teste');
All the answers worked, but I found it more practical and quick to use :eq, thank you!
– Lucas de Carvalho