How to go through a range of elements, for example starting from id p2 to id p7 and modifying the text of each of the elements that I visited, I do not have the remotest idea of how to do that. If you could give me an idea or provide an example of truth I would appreciate it
<ul class="caja">
<li id="p1">Parte 1</li>
<li id="p2">Parte 2</li>
<li id="p3">Parte 3</li>
<li id="p4">Parte 4</li>
<li id="p5">Parte 5</li>
<li id="p6">Parte 6</li>
<li id="p7">Parte 7</li>
<li id="p8">Parte 8</li>
</ul>