1
I need to access div
with id list
and change the position of span
. It’s like this:
<div id="list">
<div class='item'>
<span class="AB">conteudo 1</span>
<span class="AA">conteudo 2</span>
</div>
<div class='item'>
<span class="AB">conteudo 3</span>
<span class="AA">conteudo 4</span>
</div>
I need you to stay like this:
<div id="list">
<div class='item'>
<span class="AA">conteudo 2</span>
<span class="AB">conteudo 1</span>
</div>
<div class='item'>
<span class="AA">conteudo 4</span>
<span class="AB">conteudo 3</span>
</div>
You’re interested in an answer to solve this only with CSS or you want it to be with js or jQuery yourself?
– hugocsl