1
I have my elements in a text.
<h2> Titulo </h2>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
<h2> OUTRO TITULO </h2>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
<h2> OUTRO TITULO </h2>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
and I would like to mark the H2 elements in memory, I don’t know, and then I would create a summary with them, using <li>
and counter
in the CSS.
How could I do that?
One way to do this involves using jQuery. A response with jQuery would be acceptable in your case?
– Oralista de Sistemas
I may have misunderstood, but why don’t you give your elements a CSS class, like,:
<h2 class="sumario">texto</h2>
? So they are marked and you can access them through the class.sumario
.– Zuul